You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My project contains separate code for different CPU architectures, such as x64/a.c for x64 and arm/a.c for arm64. How can I ensure that x64/a.c is compiled only for the x64 simulator and arm/a.c is compiled only for the arm64 target? I've observed that each file has both a compile command with -arch_only x86_64 and -arch_only arm64.
I tried compiling simulator64 and simulatorarm64 separately, but when I attempted to merge them into an xcframework, I encountered an error stating, "Both 'ios-x86_64-simulator' and 'ios-arm64-simulator' represent two equivalent library definitions."
I'm looking forward to your response and appreciate your help.
The text was updated successfully, but these errors were encountered:
so you'd exclude directory that contains your arch dirs and then include only the necessary arch dir using CURRENT_ARCH xcodebuild variable, e.g. in terms of xcconfig file that would be:
My project contains separate code for different CPU architectures, such as x64/a.c for x64 and arm/a.c for arm64. How can I ensure that x64/a.c is compiled only for the x64 simulator and arm/a.c is compiled only for the arm64 target? I've observed that each file has both a compile command with -arch_only x86_64 and -arch_only arm64.
I tried compiling simulator64 and simulatorarm64 separately, but when I attempted to merge them into an xcframework, I encountered an error stating, "Both 'ios-x86_64-simulator' and 'ios-arm64-simulator' represent two equivalent library definitions."
I'm looking forward to your response and appreciate your help.
The text was updated successfully, but these errors were encountered: