This is a bug that occurs during real machine debugging. After a lot of effort, the bug is finally eliminated.
In this process, I am very grateful to my iPhone Development Group's brothers, Beijing _, Beijing _ Changkong, Oran, and Suzhou-old cat for giving me some advice, I didn't waste much time solving the problem.
I posted the debugging method today to thank some friendly and helpful friends.
Ld: Warning: directory not found for Option '-L/users/Cindy/desktop/project name/zbarsdk'
Ld: file is universal (3 slices) but does not contain a (n) armv7s slice:/users/Cindy/desktop/project name/zbarsdk/libzbar. A for architecture armv7s
Collect2: LD returned 1 exit status
Command/applications/xcode. APP/contents/developer/platforms/iPhone OS. Platform/developer/usr/bin/llvm-gcc-4.2 failed with exit code 1
This error is being reported.
Command/applications/xcode. APP/contents/developer/platforms/iphoneos. platform/developer/usr/bin/llvm-gcc-4.2 failed with exit code 1, but often in Baidu, Google search and not get the results, that is to say, the cause of this error may be caused by many reasons. My error is becauseArmv7s
.
the error Code is carefully checked. Some third-party libraries are not supported (for example, lmobclicklibrary umeng, gdataxmlnode, or AdMob class library Shenma, which is not supported ).
Armv7s represents iphone5.
The solution is as follows:
, Through project-buildSetting, and thenActiveArchitectureThe only value is set to yes.
or set V A lid deletes armv7s from the ubuntures value.
Then, we only need to wait for a third-party class library to support ios6 and iphone5.
Search onlineCommand/applications/xcode. APP/contents/developer/platforms/iphoneos. platform/developer/usr/bin/llvm-gcc-4.2 failed with exit code 1 also found two solutions, but also to solve the possibility of two errors caused, posted here.
1,
Enter:
Sudo ln-S/developer/platforms/iphoneos. Platform/developer/usr/bin/codesign_allocate/usr/bin
And press enter to solve the problem. |
2. It is possible that # import "XXX. H" may be mistakenly written as # import "XXX. M" in the project.
If a new solution is provided, I will update it in time.