I got this error only when I build the project in for archive the application install normally in my iPhone.
Some Help please
I solve this problem by changing the production release to -Onone
and changing release to DWARF
In the Build setting.
Related
I'm working in a specific Xcode project and deliberatly making errors in my code (like using undeclared variables), but Xcode doesnt seem to show any compile errors in my code.
It shows errors only when its build or clean.
Tried clean and build, cleaning derived data and restarted both Xcode and system, none of it works.
Using Xcode 8.2.1 (8C1002) and Swift 3
Besides the DerivedData folder, also try cleaning Xcode caches completely:
rm -rf $HOME/Library/Caches/com.apple.dt.Xcode/
I would recommend also killing the SourceKit process — always a source of issues these days! — but since you are already did a full reboot, so looks like you are good there.
If everything fails, you might consider upgrading to the latest Xcode, version 8.3. Just be aware that:
Xcode 8.3 no longer supports Swift 2.3. Please migrate your projects containing Swift 2.3 code to Swift 3 syntax by opening the project and choosing Edit > Convert > To Current Swift Syntax.
Project Settings, "Show all issues" fixed it for me.
For me, I had to first ensure all of my Xcode Targets had valid Signing & Capabilities like a development Team selected... then I was able to update all of my Targets to Swift 5 using the warning that was presented to me. Immediately after all of the targets were all updated to Swift 5 and the Provisioning was fixed, the red errors were flagged again!
I had the same problem using Xcode 13.3 with Swift version 5.5
Upgrading to Xcode version 14.1 (14B47b) which also upgrades Swift tools to version 5.7.1 fixed the problem.
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.
Fresh cocos2d-x project build using Xcode runs normally on iOS simulator/device, but after making changes to cpp source files, rebuild fails with error-
Xcode cannor run using selected device. Choose a destination with a supported architecture in order to run on this device.
The only way to make it work is delete build binaries (i.e. delete XCode>Derived Data folder), and take fresh build after restarting Xcode.
Can someone please help me resolve this issue?
Additional Details:
This error is related to mismatching device architecture and armv6 armv7 flags. But first build works fine, and stops working after second build onwards, that means this is not a possible issue.
If the project is not using cocos2d-x (i.e. plain Objective-C project), then there is no such error after second build.
Compiler selected: Apple LLVM Compiler 4.2
Thanks in advance!
Following my comment you should make sure you use the latest templates for creating cocos2d projects. Some templates will only work for a specific Xcode version so make sure you use the right templates for your xcode version (There are some for xcode 3.x and others for xcode 4.x)
Change Valid architecture to armv7 and armv7s. Remove armv6. See image for more information.
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.
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.