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?
Selecting any option will automatically load the page
Post
Replies
Boosts
Views
Activity
Hello all!
Does anyone know where to find the entire list of all commands and parameters of command line tools? Need to automate the application building process and need to know what could be done and how.
Hello all!
My project ic C++ project with CMake and need to create in CMakeLists.txt functionality of automatic code sign for specific team and product. Is there any way to do it?
Is there any examples or manuals?
My CMake is 3.26.3
Hello all!
My project is C++ with CMake. The application going to be using Network Extension.
Infollowing of official documentation there need to be created subtarget in the project within NE. Is there any manuals of how to add correctly subtarget Network Extension from CMake that will be built with main appication?
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?
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)
Hello all!
Is there any way to convert package into static library (*.a)?
Hello all!
Trying to work with 3d part package that using MacOS 12. In XCode 14.2 unable to find any option to add MacOS 12. Is there any way to do it? In XCode 14.2 for me available only MacOS 13.1.
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?
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?
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?
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?
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?
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?
Hello all!
From my customer got a question about ability to develop own VPN protocol adapter for customers own VPN logic on iPhone/iPad and maybe on MacOS. They using proprietary protocol that not in any list of public protocols.
For this case got few questions:
This protocol based on TCP socket, therefore all of traffic from must be redirected somehow into it and replies from servers forwarded back to device. What is the best way to do it? Which approach better to use for it:
https://developer.apple.com/documentation/networkextension/app_proxy_provider?language=objc
https://developer.apple.com/documentation/networkextension/packet_tunnel_provider?language=objc
Is there any public examples of any of this approaches?
Is there any extended public manuals or references of how it works on iOS?
Will be there any troubles for submission at AppStore?