I’ve a .xcframework to incorporate in a undertaking. This framework solely contains an arm64 slice and we nonetheless need to run our app within the simulator to make improvement simpler.
The construct works simply high-quality for a tool construct, however i am getting the next error when constructing for the simulator:
Exhibiting All Messages
Put together packages
Put together construct
ComputeTargetDependencyGraph
word: Constructing targets in dependency order
word: Goal dependency graph (1 goal)
Goal 'TestOpcore' in undertaking 'TestOpcore' (no dependencies)
Constructing targets in dependency order
Goal dependency graph (1 goal)
GatherProvisioningInputs
Construct goal TestOpcore
/Customers/otusweb/Downloads/Archive/TestOpcore-working-state/STidSDK.xcframework:1:1: Whereas constructing for iOS Simulator, no library for this platform was present in '/Customers/otusweb/Downloads/Archive/TestOpcore-working-state/STidSDK.xcframework'.
/Customers/otusweb/Downloads/Archive/TestOpcore-working-state/STidSDK.xcframework:1:1: Whereas constructing for iOS Simulator, no library for this platform was present in '/Customers/otusweb/Downloads/Archive/TestOpcore-working-state/STidSDK.xcframework'.
My understanding is that I’ve to weak hyperlink the framework and put any calls to that framework behind #if !targetEnvironment(simulator)
.
I marked the library as non-compulsory in hyperlink binary with libraries within the construct phases settings.
I additionally tried so as to add the -weak_framework within the different linked flags
construct settings, however when constructing for machine, I get Unknown argument: '-weak_framework xxxx'
and when constructing for the simulator, I nonetheless get the error that no library for this platform was discovered.
Any assist appreciated, as i am undecided what to strive subsequent.
I am utilizing xcode 16.0