Post

Replies

Boosts

Views

Activity

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
902
Feb ’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
2.8k
Jan ’23
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
908
Dec ’22
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
963
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
592
Dec ’22
Developing custom VPN adapter protocol
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?
1
0
587
Nov ’22
Access original argc and argv from application delegate willFinishLaunchingWithOptions. How?
Hello all! Need to get access to the parameters of main function from application delegate method "willFinishLaunchingWithOptions". How it could be? Fond in ProcessInfo this functionality: NSArray* oArguments = [[NSProcessInfo processInfo] arguments]; But how to get original int argc and const char* argv[]? Or how to convert NSArray* to const char* argv[]?
1
0
715
Jul ’22
Get launch options at runtime. How?
Hello all! Is there any way to get launchOptions at runtime? When application already launched and working. It means not in the methods "willFinishLaunchingWithOptions" and "didFinishLaunchingWithOptions". Is this launchOptions, that passed into this application delegate methods, stored somewhere else? If yes - how to get them? My application is written on C++ and need to get independently when application is already running.
1
0
705
Jul ’22
iOS Geofence no launching app properly. Why?
Hello all! Right now developing application that should be starting by crossing geofence. Right now have strange problem. The application launching when some other application keeping CoreLocation active and gathering data on iOS 15, on iOS 13 all is working with delay, but working. The geofenge regions started for monitoring, there are presented icon on top bar. What is missed by me in this case? Is there working example?
0
0
399
Jul ’22