Hello all!
Is there any way to convert package into static library (*.a)?
Post
Replies
Boosts
Views
Activity
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?
After update XCode got a ligature using in editor. The selected symbol in screenshot. How to switch it off and showing "!=" instead of ligature?
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[]?
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.
Hello all!
Is there any functions in CoreLocation that will allow me to calculate coordinate of the point by heading and distance?
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?
Hello everyone!
Got stacked with issues of creating universal static lib for all of possible platforms? Is it possible to create fat *.a library file that will contain all of possible versions:
Simulator arm64
Simulator x86_64
iPhone arm64