Getting linker error in Xcode 12
when I am trying to build my large iOS app (hybrid, swift+objc). The application is building fine for real device, but It gives linker error when I am trying to run in Simulator directly with Debug configuration.
I have tried all possible solutions in other post here, but unfortunately it didn't work. Although the error in other post is different. I have checked Build for active architectures only
to YES for Debug configs and NO for Release configs.
Other post error,
building for iOS Simulator, but linking in object file built for iOS, for architecture arm64
My error,
building for iOS Simulator, but linking in object file built for macOS, file for architecture x86_64
How can I resolve this issue? I need to run in both iOS real device and Simulator.
Build for active architectures only
inBuild Settings
?Build for active architectures only
toYES
for Debug configs andNO
for Release configs. The application is building fine for real device, but It gives linker error when I am trying to run in Simulator directly with Debug configuration.lipo
) yourself, but without further info I can't say that.