Framework not found error when building for Generic iOS, the build works just fine when you target iPhone 11 or iPad

Hello All,


For seme reason when I swtich the build for to Generic iOS Device , my projects failes to build saying it can not find a required framework that should be and is normally built when I target for example an "iPhone 11 Pro" build. Anyone else encounter this ?


Thanks,


-VJ

Why are you selecting generic instead of an actual device, or a specific simulator? Which version Xcode?


What happens if you try to Archive, instead...

If the missing framework is one you build, the issue may be that building for Generic iOS device builds for all possible architectures. That means all the frameworks your app is linking with must be built for all architectures too. You may need to force build the framework for all architectures (Generic iOS device). If that fixes the issue, then there is some dependency issue in the project, whereby xcode does not realize to rebuild the framework before the app when switching configurations.
The other possibility is that when you selecting iPhone 11 Pro, you are targeting iPhone 11 Pro simulator (it is in iOS Simulator section). Generic iOS device is building for all iOS devices (all supported architecture, all supported assets, etc.).

The problem is either that you have different project configuration on simulator platform or you only have simulator framework in the framework search path but not the iOS version.
Framework not found error when building for Generic iOS, the build works just fine when you target iPhone 11 or iPad
 
 
Q