Skip to content

How to add files or define to different cpu when use SIMULATOR64COMBINED? #215

@SirLYC

Description

@SirLYC

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.

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions