-
-
Save wangzz/11389652 to your computer and use it in GitHub Desktop.
Xcode报objective c implicit conversion loses integer precision 'NSUInteger' (aka 'unsigned long') to 'int' warning | |
问题原因:int在64位平台和32位平台不兼容 | |
解决方案: | |
两种方式都可以 | |
①将Valid Architectures里的arm64删掉 | |
②把xcode中implicit conversion to 32 bit type设置项都设为NO |
valid指的是能够支持的arch,两个设置合起来的效果是一样的,意思差不多是取交集。
ARCHS (Architectures)
Space-separated list of identifiers. Specifies the architectures (ABIs, processor models) to which the binary is targeted. When this build setting specifies more than one architecture, the generated binary may contain object code for each of the specified architectures.
VALID_ARCHS (Valid Architectures)
Space-separated list of identifiers. Specifies the architectures for which the binary may be built. During the build, this list is intersected with the value of ARCHS build setting; the resulting list specifies the architectures the binary can run on. If the resulting architecture list is empty, the target generates no binary.
Xcode provisioning file保存目录:
~/Library/MobileDevice/Provisioning Profiles
Fav
Gttsss
Gddhb
Xcode设置项大全
http://www.noxeos.com/2011/02/04/xcode-build-settings/