Skip to content

Instantly share code, notes, and snippets.

@wangzz
Last active August 29, 2015 14:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wangzz/11389652 to your computer and use it in GitHub Desktop.
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
@wangzz
Copy link
Author

wangzz commented Apr 29, 2014

@wangzz
Copy link
Author

wangzz commented May 6, 2014

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.

http://stackoverflow.com/questions/12701188/whats-the-difference-between-architectures-and-valid-architectures-in-xcode

http://my.oschina.net/shede333/blog/172785

@wangzz
Copy link
Author

wangzz commented Jun 17, 2014

Xcode provisioning file保存目录:
~/Library/MobileDevice/Provisioning Profiles

@wangzz
Copy link
Author

wangzz commented Feb 3, 2015

Fav

Gttsss

Gddhb

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment