Xcode 报错architectures (armv7) include none that iPhone can execute (arm64v8, arm64, armv8)

老项目在新版Xcode上真机编译报错 architectures (armv7) include none that iPhone (66) can execute (arm64v8, arm64, armv8) ,解决频繁修改设置的问题;

暂时可以解决的方案是 

Target — Build Settings — Excluded Architecture 里去除arm64,模拟器运行的时候在加上arm64。

上面的方法在切换模拟器和真机时都要修改工程设置,很麻烦。最近想到了一个办法来规避频繁修改的问题,看图!!!!针对模拟器单独屏蔽arm64.



另外老项目打开后建议删除VALID_ARCHS,会减少很多问题


你可能感兴趣的:(Xcode 报错architectures (armv7) include none that iPhone can execute (arm64v8, arm64, armv8))