I have an issue when running the application.
I got error Apple LLVM compiler 4.2 Error
Command /Applications/Xcode46-DP4.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang failed with exit code 1
I quit and reopen the project and click clean
Also i have same issue. Can any one advice me how to fix the issue
Thanks in advance.
I am using Xcode 4.6 IOS 6.1
Try deactivating the use of precompiled headers in Xcode's build-settings. That may fix the issue.
Related
Xcode 5.1 just released. I installed the latest version of Xcode 5.1 as well as Unity 4.3.4f1.
Before updating Xcode to version 5.1, Unity project builds without problem. In the mentioned version, the following errors appeared when I hit "Build and Run" in Unity3D:
In Unity:
UnityException: Launching iOS project via Xcode4 failed. Check editor log for details.
Well, I'm not using Xcode4. Xcode fails to load. Then I open the Xcode project manually. When I try to compile the Xcode project, the following compile errors occurs:
Dsymutil Error: error: invalid abbreviation code [114] for DIE at 0x00005e22 in
and
Dsymutil Error: Command /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/dsymutil emitted errors but did not return a nonzero exit code to indicate failure
What do they mean? How can I resolve it?
Note: the App build is successful on device.
The device is iOS 6.1.4, iPhone 5.
If you change the "Debug Information Format" to DWARF, the error will go away.
DEBUG_INFORMATION_FORMAT = dwarf
I got this answer from here
You can get Build and Run working again in Unity w/ the latest Xcode by following the steps in this thread
http://forum.unity3d.com/threads/234557-nityException-Launching-iOS-project-via-Xcode4-failed
This is not a definitive answer but in the meantime I did this on my project and I manage to compile and make it work on an iPad with the latest iOS 7.1.
I was able to compile with no errors but warnings by removing armv7 and arm64 from the architectures.
Some references here: Architecture linking error after Xcode 5.1 upgrade
I currently have the latest Unity 4.3.4f1 and Xcode 5.1/iOS 7.1 sdk installed and using Build and Run in Unity to automatically get a build on an iOS device also fails for me.
Just do:
File > Build Settings... > Build
in Unity, manually open the project in Xcode, and build/run it normally from Xcode - it still compiles and runs fine on a connected device.
You can fix Xcode 5.1 support by manually editing Unity Xcode plugin metadata.
Find following file in Unity installation:
Unity.app/Contents/BuildTargetTools/iPhonePlayer/Unity4XC.xcplugin/Contents/Info.plist
Open it with XCode and locate following lines here:
DVTPlugInCompatibilityUUIDs
Insert following item just before closing
A2E4D43F-41F4-4FB9-BB94-7177011C9AED
Restart Xcode.
Updating Unity to 4.5 (using XCode 5.1.1) solved the problem for me.
This is second time I had this issue.
I re-installed Xcode when I had this issue at first time, but I wondered what causes this problem.
None of project cannot be compiled due to all frameworks are not found.
Even though I started new project, Xcode complained about "Availability.h is not found". Once I got remove that line, it complained "UIKit/UIKit.h is not found", and so on.
Does anyone how to fix this problem?
Thanks
This is a plague in Xcode 4.5. If you go into build settings and switch build active architecture only to yes, I believe this will solve your problem
Just upgraded to Xcode 4.5. Figured out after getting bugs in my app in the 6.0 simulator that I had to redownload the 5.1 simulator. Hurray, that worked! but....
When I went and tried to run against my iPad1 with iOS 5.1.1 on it, I get a whole bunch of restkit compile errors.
Getting : "Linker command failed with exit code 1"
Do I have to upgrade to Resktit 10.3 ? I don't see anything in the github history regarding Xcode 4.5 fixes...
Thanks!
OK, just noticed the following warning:
ignoring file /Users/.../Library/Developer/Xcode/DerivedData/PlascoTrac-ginlxeicfonetcaicpyggfpyuxrj/Build/Products/Debug-iphoneos/libRestKit.a, file was built for archive which is not the architecture being linked (armv7s): /Users/.../Library/Developer/Xcode/DerivedData/PlascoTrac-ginlxeicfonetcaicpyggfpyuxrj/Build/Products/Debug-iphoneos/libRestKit.a
so I went to the Restkit target and changed the architecture to
Standard (armv7, armv7s)
and voila!
Leaving this question and answer here because I don't see the exact equivalent here and it might be useful to others,
Cheers.
I have seen this similar question on SO in a few places but all of them are related to Simulator and old Xcode version. For examples, Error: unknown error code. this process was already running or is hung in the debugger and Error when testing on iOS simulator: Couldn't register with the bootstrap server
I have never seen this error before until I upgraded my Xcode to 4.4. It works fine on the simulator but not on an iPhone. I have also upgraded Xcode to 4.4.1 today but no luck. How to get rid of this error on an iPhone?
Couldn't register com.mycompany.myapp with the bootstrap server. Error: unknown error code.
This generally means that another instance of this process was already running or is hung in the debugger.
Restart both Xcode and iDevice.
Yes, if restarting xcode doesn't work, restart your MAC & restart your iPhone - it worked even in xCode 4.3. In xCode 4.4 it seems to happen less often.
My experience is that restarting is not required anymore with Xcode 4.4
Just close and restart. If the normal closing won't work press ctrl+alt+esc and exit xcode immediately.
Unfortunately there is no other way to prevent this (expect if you are hammering on run ;) )
See this post on fixing the bootstrap errors.
I have some static libraries in my Xcode 4 (iOS 4.3 SDK) project. When I archive the project i am getting the following error below when the tool attempts to strip symbols. I have the same settings i used for Xcode 3.2. I have noticed if i change the 'Strip Style' option in build settings from All Symbols to Debugging Symbols then the archive is built successfully.
Command /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/strip failed with exit code 1
As mentioned above I have not changed this setting from 3.2 so am wondering how to fix this issue?
Thanks
I have met the question like this. I used three20 library in my project, when I archived it. "Strip Symbols Error" about the three20 libraries was produced.
I found the three20 library's "iOS Deployment Target" was "iOS 3.0", but xcode 4.6.3 has no iOS 3.0 sdk. I think it's a problem.
When I changed all three20 libraries' "iOS Deployment Target" to "iOS 5.1", these problems solved.
The fixed place is "Target"->"Build Settings"(All)->"Deployment"->"iOS Deployment".
Please try the following steps. It may be robust for you.
open Terminal window.(find in spotlight
type same code:
sudo /Developer/Library/uninstall-devtools --mode=all
hit enter,it will be ask for ur admin username/pass then press enter.
it will clean your previous directory.
after clean up,it will ask for something,type exit and close terminal.
Now, try installing your Xcode, if you get notification about iTunes (optional)
open activity indicator
find itunes helper process,select it,end process.
After installing new Xcode, restart mac and check.
Thanks
Have you tried to set to NO the build for active architecture only? Are you using in adhoc for your archive? Please try that to see what happens.