Post

Replies

Boosts

Views

Activity

Network Extension for iOS and MacOS. Is there any difference?
Hello! Need to develop Network Etension Packet Tunnel Provider for MacOS. Previously been developing NE for iOS. There are some limits and mobile application special things. Got some questions because of it: What kind of limits for NE in MacOS? Is it the same like for iOS? (Memory, traffic, etc). How it interacting with main application? Is there something very specific for MacOS implementaion of NE? Is there examples or manuals of NE especially designated for MacOS?
5
0
1.2k
May ’23
Network Extension for iOS and MacOS with CMake for C++ application. How?
Hello all! Trying to find any info about how to create iOS/MacOS application written with CMake/C++ within Network Extension. There are few questions: How to setup CMake project for correct application building with XCode? Is there any examples of it? Some of details about XCode part covered in this thread But there are nothing about settings for CMake.
0
0
466
May ’23
iOS application lifecycle and network extension. How?
Hello all! The aplication that is developing by me now contain Network Extension and Packet Filtering functionality. The question is about lifecycles and how to handle application lifecycles (active, background, will be terminated) and network extension lifecycles together. There are few questions: Is there any manuals about iOS Application Extensions lifecycles and how to handle it in case of main application lifecycle? Is there something special in case of Network Extension lifecycle? How to correctly handle Network extension crash? How to correctly handle Background mode? Is there any examples, references or manuals about all of this topics?
5
0
1.5k
May ’23
Could not find or use auto-linked library
Hello all! My project written with C++ and CMake for iOS. It's using Swift implementation via Objective-C/ObjectiveC++. This project devided on modules via CMake add_subdirectory() functionality. When Swift/Objective-C/Objective-C++ sources attached to the Main project - all is working perfectly. But when trying to add Swift sources in subdirectory have troubles with it: ld: warning: Could not find or use auto-linked library 'swiftDarwin' ld: warning: Could not find or use auto-linked library 'swiftCore' ld: warning: Could not find or use auto-linked library 'swiftCoreGraphics' ld: warning: Could not find or use auto-linked library 'swiftObjectiveC' ld: warning: Could not find or use auto-linked library 'swiftCoreFoundation' ld: warning: Could not find or use auto-linked library 'swift_Concurrency' ld: warning: Could not find or use auto-linked library 'swiftDispatch' ld: warning: Could not find or use auto-linked library 'swiftCompatibility51' ld: warning: Could not find or use auto-linked library 'swiftCompatibilityConcurrency' Undefined symbols for architecture x86_64: "__swift_FORCE_LOAD_$_swiftCompatibilityConcurrency", referenced from: __swift_FORCE_LOAD_$_swiftCompatibilityConcurrency_$_ASwift in libASwift.a(aswiftiosswift.o) (maybe you meant: __swift_FORCE_LOAD_$_swiftCompatibilityConcurrency_$_ASwift) "__swift_FORCE_LOAD_$_swiftCompatibility51", referenced from: __swift_FORCE_LOAD_$_swiftCompatibility51_$_ASwift in libASwift.a(aswiftiosswift.o) (maybe you meant: __swift_FORCE_LOAD_$_swiftCompatibility51_$_ASwift) "__swift_FORCE_LOAD_$_swiftCoreGraphics", referenced from: __swift_FORCE_LOAD_$_swiftCoreGraphics_$_ASwift in libASwift.a(aswiftiosswift.o) (maybe you meant: __swift_FORCE_LOAD_$_swiftCoreGraphics_$_ASwift) "__swift_FORCE_LOAD_$_swiftDispatch", referenced from: __swift_FORCE_LOAD_$_swiftDispatch_$_ASwift in libASwift.a(aswiftiosswift.o) (maybe you meant: __swift_FORCE_LOAD_$_swiftDispatch_$_ASwift) "__swift_FORCE_LOAD_$_swiftCoreFoundation", referenced from: __swift_FORCE_LOAD_$_swiftCoreFoundation_$_ASwift in libASwift.a(aswiftiosswift.o) (maybe you meant: __swift_FORCE_LOAD_$_swiftCoreFoundation_$_ASwift) "value witness table for Builtin.UnknownObject", referenced from: full type metadata for ASwift.ASwiftIOSSwift in libASwift.a(aswiftiosswift.o) "__swift_FORCE_LOAD_$_swiftFoundation", referenced from: __swift_FORCE_LOAD_$_swiftFoundation_$_ASwift in libASwift.a(aswiftiosswift.o) (maybe you meant: __swift_FORCE_LOAD_$_swiftFoundation_$_ASwift) "nominal type descriptor for Swift._ContiguousArrayStorage", referenced from: _symbolic _____yypG s23_ContiguousArrayStorageC in libASwift.a(aswiftiosswift.o) "_swift_getObjCClassMetadata", referenced from: type metadata accessor for __C.NSString in libASwift.a(aswiftiosswift.o) "__swift_FORCE_LOAD_$_swiftObjectiveC", referenced from: __swift_FORCE_LOAD_$_swiftObjectiveC_$_ASwift in libASwift.a(aswiftiosswift.o) (maybe you meant: __swift_FORCE_LOAD_$_swiftObjectiveC_$_ASwift) "type metadata for Swift.String", referenced from: @objc ASwift.ASwiftIOSSwift.init() -> ASwift.ASwiftIOSSwift in libASwift.a(aswiftiosswift.o) "__swift_FORCE_LOAD_$_swiftDarwin", referenced from: __swift_FORCE_LOAD_$_swiftDarwin_$_ASwift in libASwift.a(aswiftiosswift.o) (maybe you meant: __swift_FORCE_LOAD_$_swiftDarwin_$_ASwift) "_swift_release", referenced from: @objc ASwift.ASwiftIOSSwift.init() -> ASwift.ASwiftIOSSwift in libASwift.a(aswiftiosswift.o) "Swift.print(_: Any..., separator: Swift.String, terminator: Swift.String) -> ()", referenced from: @objc ASwift.ASwiftIOSSwift.init() -> ASwift.ASwiftIOSSwift in libASwift.a(aswiftiosswift.o) "_swift_allocObject", referenced from: @objc ASwift.ASwiftIOSSwift.init() -> ASwift.ASwiftIOSSwift in libASwift.a(aswiftiosswift.o) "(extension in Foundation):__C.NSString.init(stringLiteral: Swift.StaticString) -> __C.NSString", referenced from: ASwift.ASwiftIOSSwift.mString() -> __C.NSString in libASwift.a(aswiftiosswift.o) @objc ASwift.ASwiftIOSSwift.mString() -> __C.NSString in libASwift.a(aswiftiosswift.o) "_swift_getTypeByMangledNameInContext", referenced from: ___swift_instantiateConcreteTypeFromMangledName in libASwift.a(aswiftiosswift.o) ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation) What's missed by me? When using in Main the CMake settings looks like: set_target_properties(Target PROPERTIES XCODE_ATTRIBUTE_SWIFT_OBJC_INTERFACE_HEADER_NAME "aswiftobjcinterface.h" XCODE_ATTRIBUTE_SWIFT_OBJC_BRIDGING_HEADER "${A_DIR_MODULE_ROOT}/aswiftbridging.h" XCODE_ATTRIBUTE_ENABLE_BITCODE "NO" XCODE_ATTRIBUTE_ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES "YES" XCODE_ATTRIBUTE_SWIFT_VERSION "5.0" ) When adding the same settings in subdirectory CMake file then nothing is working. What is the cause of this error?
1
0
3.4k
Apr ’23
Add Signing&Capabilities to XCode project from command line. How?
Hello all! My project is C++ project for iOS. It's using In-App Purchase from StoreKit. To build this project need to add "In-App Purchase" to the project "Signing&Capabilities" from command line. How to add it? Is there any manuals how to handle properties of XCode project from command line and the list of all values that used for it?
1
0
1.2k
Feb ’23
Could not find or use auto-linked library
Hello all! My project is C++ project for iOS that is organaised with CMake. For now trying to implement module that written with Swift via Objective-C/Objective-C++ bridge. Got this errors (See screenshot). How to solve it? Where to start solving it? The CMakeLists.txt contain this: set_target_properties(${A_NAME_TARGET} PROPERTIES XCODE_ATTRIBUTE_SWIFT_OBJC_INTERFACE_HEADER_NAME "${SOURCES_HEADER_SWIFT_OBJC_INTERFACE}" XCODE_ATTRIBUTE_DERIVED_FILE_DIR "${PROJECT_BINARY_DIR}" XCODE_ATTRIBUTE_SWIFT_OBJC_BRIDGING_HEADER "${SOURCES_HEADER_SWIFT_OBJC_BRIDGING}" XCODE_ATTRIBUTE_DEFINES_MODULE "YES" XCODE_ATTRIBUTE_ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES "YES" ) What is missing?
0
0
1.1k
Dec ’22
Xcode: Objective-C Generated Interface Header Name. Which name is correct?
Hello all! Trying to find any info about the way of naming "Objective-C Generated Interface Header Name". In many documaentation found "MyProject-Swift.h" example. But no any mentioning about mandatory this way of naming or it might be named by my own? What is the mandatory way of naming Swift interface for Objective-C? Is there any official documentation about how it must or could be?
1
0
1.2k
Dec ’22
Error whe creating test user in appstoreconnect
Hello! Trying to create user in SandBox. The server reply is looking like: HTTP/1.1 500 Internal Server Error server: daiquiri/3.0.0 content-type: application/json content-length: 361 x-apple-jingle-correlation-key: H6IDOVKCHEN3MNU5LXCHJF4ARU x-apple-request-uuid: 3f903755-4239-1bb6-369d-5dc47497808d b3: 3f90375542391bb6369d5dc47497808d-dc47ec57658a19f9 x-b3-traceid: 3f90375542391bb6369d5dc47497808d x-b3-spanid: dc47ec57658a19f9 apple-seq: 0.0 apple-tk: false apple-originating-system: SandboxPurchaseManager x-responding-instance: SandboxPurchaseManager:020107::: strict-transport-security: max-age=31536000; includeSubDomains; preload x-runtime: 0.035603 apple-timing-app: 35 ms x-frame-options: SAMEORIGIN x-xss-protection: 1; mode=block x-content-type-options: nosniff x-content-security-policy: script-src 'self' *.apple.com x-daiquiri-instance: daiquiri:49299002:st44p00it-hyhk16084901:7987:22RELEASE175:daiquiri-amp-commerce-services-int-001-st, daiquiri:38493001:pv50p00it-hyhk12043901:7987:22RELEASE175:daiquiri-amp-all-shared-ext-001-pv date: Sun, 04 Dec 2022 06:19:09 GMT X-Firefox-Spdy: h2 Why so? Is there something wrong with Apple servers?
0
0
778
Dec ’22
Network Extension for iOS and MacOS. Is there any difference?
Hello! Need to develop Network Etension Packet Tunnel Provider for MacOS. Previously been developing NE for iOS. There are some limits and mobile application special things. Got some questions because of it: What kind of limits for NE in MacOS? Is it the same like for iOS? (Memory, traffic, etc). How it interacting with main application? Is there something very specific for MacOS implementaion of NE? Is there examples or manuals of NE especially designated for MacOS?
Replies
5
Boosts
0
Views
1.2k
Activity
May ’23
Network Extension for iOS and MacOS with CMake for C++ application. How?
Hello all! Trying to find any info about how to create iOS/MacOS application written with CMake/C++ within Network Extension. There are few questions: How to setup CMake project for correct application building with XCode? Is there any examples of it? Some of details about XCode part covered in this thread But there are nothing about settings for CMake.
Replies
0
Boosts
0
Views
466
Activity
May ’23
iOS application lifecycle and network extension. How?
Hello all! The aplication that is developing by me now contain Network Extension and Packet Filtering functionality. The question is about lifecycles and how to handle application lifecycles (active, background, will be terminated) and network extension lifecycles together. There are few questions: Is there any manuals about iOS Application Extensions lifecycles and how to handle it in case of main application lifecycle? Is there something special in case of Network Extension lifecycle? How to correctly handle Network extension crash? How to correctly handle Background mode? Is there any examples, references or manuals about all of this topics?
Replies
5
Boosts
0
Views
1.5k
Activity
May ’23
Wireguard for iOS. How?
Hello all! Trying to develop VPN application that using Wireguard. Have few qustions about it: Need to have Wireguard https://github.com/WireGuard/wireguard-apple package as static library. Is there any way to use this package as static library? My application is C++. Does anyone know any Wireguard C++ libraries that will be OK for iOS/MacOS? (Not Swift)
Replies
1
Boosts
0
Views
1.6k
Activity
May ’23
Could not find or use auto-linked library
Hello all! My project written with C++ and CMake for iOS. It's using Swift implementation via Objective-C/ObjectiveC++. This project devided on modules via CMake add_subdirectory() functionality. When Swift/Objective-C/Objective-C++ sources attached to the Main project - all is working perfectly. But when trying to add Swift sources in subdirectory have troubles with it: ld: warning: Could not find or use auto-linked library 'swiftDarwin' ld: warning: Could not find or use auto-linked library 'swiftCore' ld: warning: Could not find or use auto-linked library 'swiftCoreGraphics' ld: warning: Could not find or use auto-linked library 'swiftObjectiveC' ld: warning: Could not find or use auto-linked library 'swiftCoreFoundation' ld: warning: Could not find or use auto-linked library 'swift_Concurrency' ld: warning: Could not find or use auto-linked library 'swiftDispatch' ld: warning: Could not find or use auto-linked library 'swiftCompatibility51' ld: warning: Could not find or use auto-linked library 'swiftCompatibilityConcurrency' Undefined symbols for architecture x86_64: "__swift_FORCE_LOAD_$_swiftCompatibilityConcurrency", referenced from: __swift_FORCE_LOAD_$_swiftCompatibilityConcurrency_$_ASwift in libASwift.a(aswiftiosswift.o) (maybe you meant: __swift_FORCE_LOAD_$_swiftCompatibilityConcurrency_$_ASwift) "__swift_FORCE_LOAD_$_swiftCompatibility51", referenced from: __swift_FORCE_LOAD_$_swiftCompatibility51_$_ASwift in libASwift.a(aswiftiosswift.o) (maybe you meant: __swift_FORCE_LOAD_$_swiftCompatibility51_$_ASwift) "__swift_FORCE_LOAD_$_swiftCoreGraphics", referenced from: __swift_FORCE_LOAD_$_swiftCoreGraphics_$_ASwift in libASwift.a(aswiftiosswift.o) (maybe you meant: __swift_FORCE_LOAD_$_swiftCoreGraphics_$_ASwift) "__swift_FORCE_LOAD_$_swiftDispatch", referenced from: __swift_FORCE_LOAD_$_swiftDispatch_$_ASwift in libASwift.a(aswiftiosswift.o) (maybe you meant: __swift_FORCE_LOAD_$_swiftDispatch_$_ASwift) "__swift_FORCE_LOAD_$_swiftCoreFoundation", referenced from: __swift_FORCE_LOAD_$_swiftCoreFoundation_$_ASwift in libASwift.a(aswiftiosswift.o) (maybe you meant: __swift_FORCE_LOAD_$_swiftCoreFoundation_$_ASwift) "value witness table for Builtin.UnknownObject", referenced from: full type metadata for ASwift.ASwiftIOSSwift in libASwift.a(aswiftiosswift.o) "__swift_FORCE_LOAD_$_swiftFoundation", referenced from: __swift_FORCE_LOAD_$_swiftFoundation_$_ASwift in libASwift.a(aswiftiosswift.o) (maybe you meant: __swift_FORCE_LOAD_$_swiftFoundation_$_ASwift) "nominal type descriptor for Swift._ContiguousArrayStorage", referenced from: _symbolic _____yypG s23_ContiguousArrayStorageC in libASwift.a(aswiftiosswift.o) "_swift_getObjCClassMetadata", referenced from: type metadata accessor for __C.NSString in libASwift.a(aswiftiosswift.o) "__swift_FORCE_LOAD_$_swiftObjectiveC", referenced from: __swift_FORCE_LOAD_$_swiftObjectiveC_$_ASwift in libASwift.a(aswiftiosswift.o) (maybe you meant: __swift_FORCE_LOAD_$_swiftObjectiveC_$_ASwift) "type metadata for Swift.String", referenced from: @objc ASwift.ASwiftIOSSwift.init() -> ASwift.ASwiftIOSSwift in libASwift.a(aswiftiosswift.o) "__swift_FORCE_LOAD_$_swiftDarwin", referenced from: __swift_FORCE_LOAD_$_swiftDarwin_$_ASwift in libASwift.a(aswiftiosswift.o) (maybe you meant: __swift_FORCE_LOAD_$_swiftDarwin_$_ASwift) "_swift_release", referenced from: @objc ASwift.ASwiftIOSSwift.init() -> ASwift.ASwiftIOSSwift in libASwift.a(aswiftiosswift.o) "Swift.print(_: Any..., separator: Swift.String, terminator: Swift.String) -> ()", referenced from: @objc ASwift.ASwiftIOSSwift.init() -> ASwift.ASwiftIOSSwift in libASwift.a(aswiftiosswift.o) "_swift_allocObject", referenced from: @objc ASwift.ASwiftIOSSwift.init() -> ASwift.ASwiftIOSSwift in libASwift.a(aswiftiosswift.o) "(extension in Foundation):__C.NSString.init(stringLiteral: Swift.StaticString) -> __C.NSString", referenced from: ASwift.ASwiftIOSSwift.mString() -> __C.NSString in libASwift.a(aswiftiosswift.o) @objc ASwift.ASwiftIOSSwift.mString() -> __C.NSString in libASwift.a(aswiftiosswift.o) "_swift_getTypeByMangledNameInContext", referenced from: ___swift_instantiateConcreteTypeFromMangledName in libASwift.a(aswiftiosswift.o) ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation) What's missed by me? When using in Main the CMake settings looks like: set_target_properties(Target PROPERTIES XCODE_ATTRIBUTE_SWIFT_OBJC_INTERFACE_HEADER_NAME "aswiftobjcinterface.h" XCODE_ATTRIBUTE_SWIFT_OBJC_BRIDGING_HEADER "${A_DIR_MODULE_ROOT}/aswiftbridging.h" XCODE_ATTRIBUTE_ENABLE_BITCODE "NO" XCODE_ATTRIBUTE_ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES "YES" XCODE_ATTRIBUTE_SWIFT_VERSION "5.0" ) When adding the same settings in subdirectory CMake file then nothing is working. What is the cause of this error?
Replies
1
Boosts
0
Views
3.4k
Activity
Apr ’23
Add Signing&Capabilities to XCode project from command line. How?
Hello all! My project is C++ project for iOS. It's using In-App Purchase from StoreKit. To build this project need to add "In-App Purchase" to the project "Signing&Capabilities" from command line. How to add it? Is there any manuals how to handle properties of XCode project from command line and the list of all values that used for it?
Replies
1
Boosts
0
Views
1.2k
Activity
Feb ’23
Could not find or use auto-linked library
Hello all! My project is C++ project for iOS that is organaised with CMake. For now trying to implement module that written with Swift via Objective-C/Objective-C++ bridge. Got this errors (See screenshot). How to solve it? Where to start solving it? The CMakeLists.txt contain this: set_target_properties(${A_NAME_TARGET} PROPERTIES XCODE_ATTRIBUTE_SWIFT_OBJC_INTERFACE_HEADER_NAME "${SOURCES_HEADER_SWIFT_OBJC_INTERFACE}" XCODE_ATTRIBUTE_DERIVED_FILE_DIR "${PROJECT_BINARY_DIR}" XCODE_ATTRIBUTE_SWIFT_OBJC_BRIDGING_HEADER "${SOURCES_HEADER_SWIFT_OBJC_BRIDGING}" XCODE_ATTRIBUTE_DEFINES_MODULE "YES" XCODE_ATTRIBUTE_ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES "YES" ) What is missing?
Replies
0
Boosts
0
Views
1.1k
Activity
Dec ’22
Xcode: Objective-C Generated Interface Header Name. Which name is correct?
Hello all! Trying to find any info about the way of naming "Objective-C Generated Interface Header Name". In many documaentation found "MyProject-Swift.h" example. But no any mentioning about mandatory this way of naming or it might be named by my own? What is the mandatory way of naming Swift interface for Objective-C? Is there any official documentation about how it must or could be?
Replies
1
Boosts
0
Views
1.2k
Activity
Dec ’22
Error whe creating test user in appstoreconnect
Hello! Trying to create user in SandBox. The server reply is looking like: HTTP/1.1 500 Internal Server Error server: daiquiri/3.0.0 content-type: application/json content-length: 361 x-apple-jingle-correlation-key: H6IDOVKCHEN3MNU5LXCHJF4ARU x-apple-request-uuid: 3f903755-4239-1bb6-369d-5dc47497808d b3: 3f90375542391bb6369d5dc47497808d-dc47ec57658a19f9 x-b3-traceid: 3f90375542391bb6369d5dc47497808d x-b3-spanid: dc47ec57658a19f9 apple-seq: 0.0 apple-tk: false apple-originating-system: SandboxPurchaseManager x-responding-instance: SandboxPurchaseManager:020107::: strict-transport-security: max-age=31536000; includeSubDomains; preload x-runtime: 0.035603 apple-timing-app: 35 ms x-frame-options: SAMEORIGIN x-xss-protection: 1; mode=block x-content-type-options: nosniff x-content-security-policy: script-src 'self' *.apple.com x-daiquiri-instance: daiquiri:49299002:st44p00it-hyhk16084901:7987:22RELEASE175:daiquiri-amp-commerce-services-int-001-st, daiquiri:38493001:pv50p00it-hyhk12043901:7987:22RELEASE175:daiquiri-amp-all-shared-ext-001-pv date: Sun, 04 Dec 2022 06:19:09 GMT X-Firefox-Spdy: h2 Why so? Is there something wrong with Apple servers?
Replies
0
Boosts
0
Views
778
Activity
Dec ’22
OpenVPN library usage in iOS. How?
Hello all! Going to implement VPN service into application based on OpenVPN library. Got few questions: What is limitation when publishing application in AppStore with LGPL license? Will be there any troubles? Could OpenVPN library be used in project directly without any kits? Is there any examples of using TunelKit?
Replies
1
Boosts
0
Views
656
Activity
Nov ’22