问题
I want to upload my iPhone app but the problem is that Facebook ios SDK is using "uniqueIdentifier" because of this issue I am not to able to upload my app on app store.Any possible solution ? Apple has banned uniqueIdentifier that why this issue is coming so please suggest me possible solution.
回答1:
You can use the otool command to identify precisely which libraries are at fault, with grep still providing a pool of suspicious files. As shown in my blog post here, the following command will only output non-blank lines for libraries that actually cause an issue:
for match in $(grep -lR uniqueIdentifier *); do printf "File:%s\n\n" $match; otool -v -s __TEXT __objc_methname $match | grep uniqueIdentifier; printf "\n\n"; done;
回答2:
There's a good chance that facebook isn't the problem. run
$ find . | grep -v .svn | grep "\.a" | grep -v "\.app" | xargs grep uniqueIdentifier
in the project folder. The out put was something to do with Accounts?
I believe that your problem is the Accounts framework. If it's not used in your project just remove it.
回答3:
Late to the party, but... ensure you have the most recent and up-to-date version of the Facebook SDK in your project, v3.5.1 as of April 24, 2013. If memory serves, however, I think they removed UDID from their SDK quite a while ago. Note that depending on how old your current version of the SDK is, you will have a varying amount of work to do to upgrade to the latest SDK.
来源:https://stackoverflow.com/questions/16667986/uniqueidentifier-is-banned-by-apple-to-use