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.
Related
I'm having a bit of an issue with distributing an app via the latest version of Xcode (Version 10.1 (10B61)). Every time I try to upload it to the App Store via organizer, I get this error after uploading:
WARNING ITMS-90725: "SDK Version Issue. This app was built with the iOS 12.0 SDK. Starting March 2019, all iOS apps submitted to the App Store must be built with the iOS 12.1 SDK or later, included in Xcode 10.1 or later."
Previous answers to this question said that it was just a warning and that I should still be able to upload my app, but it is now March and I am still getting the error even on 10.1. iTunesConnect will not let me select these builds and I get emails about the validation failure.
Further details:
-The app is an iMessage extension, and uses exactly 1 framework from Carthage, which is up to date with the latest framework version and Carthage version.
-My project and Message extension targets Swift Language Version build setting is Swift 4.2.
-My deployment target is iOS 11.0, but the issue persists after selecting iOS 12.1.
-The app compiles and runs fine on my physical device running iOS 12.1.
-The issue persists after a build folder clean.
-The issue persists after reinstalling Xcode.
If anyone has any suggestions as to how I can verify my app is compiling with the latest SDK please let me know.
Whether the app runs on given iOS version, has no relevance to which SDK are you really using. The definitive SDK version used for building is found in the app's Info.plist.
after Archiving, Show the xcarchive in Finder.
right-click, Show Package Contents.
open Products/Applications/YourApp.app
right-click, Show Package Contents.
copy the Info.plist to some place where you can run terminal commands on it
/usr/libexec/PlistBuddy -c "print :DTSDKBuild" Info.plist
You would expect it to show "16B91" for SDK 12.1. If it's something else (SDK 12.0 would be "16A366"), here are some ideas:
inspect the Carthage dependency. Are you really building it locally or downloading a prebuilt binary? If in doubt, force local building with --no-use-binaries. Remove whole Carthage folder (Checkouts as well as Build) and start from scratch.
rm -rf ~/Library/Developer/Xcode/DerivedData instead of just "build folder clean"
Verify MacOS System Report section Software/Developer for the actual SDK versions that MacOS thinks that you have
xcode-select -p to verify that you are really using the Xcode instance that you would like to
If all looks correct on your side, fill Technical Support Incident. Report the exact rejected build which you uploaded already. That should speed up the support reaction.
I filled out a bug report with Apple because I was experiencing the exact same issue and none of the above solutions worked. They made a change on their backend and now everything is back to proper working order.
If you haven't tried in awhile, make another attempt and I'm betting that it'll work this time.
I was having the same problem. My app was compiled in Xcode 10.1 but I was still getting the SDK warning. I was able to resolve it by doing the following. I'm not sure if all these steps are necessary. I didn't try validating between steps.
I upgraded macOS to Mojave (10.14.3). I had been running High Sierra.
Delete Xcode from applications folder
Reinstall Xcode from the app store
Open my project and run Project->Clean Build folder
Archive and upload and no more warnings
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.
I've been trying to create a Cordova / Phonegap application in Xcode on a new computer. But it doesn't seem to work. When I run the application on either a simulator or my iPhone I get an error message saying that 'libCordova.a' is not found.
1 error message and 5 issues:
/Users/Tim/Documents/Dropbox/Applicaties/Business/FirstProject/Xcode/FirstProject.xcodeproj
/Users/Tim/Documents/Dropbox/Applicaties/Business/FirstProject/Xcode/FirstProject.xcodeproj Missing "Default-568h#2x.png" launch image
/Users/Tim/Documents/Dropbox/Applicaties/Business/FirstProject/Xcode/FirstProject/Classes/AppDelegate.m
/Users/Tim/Documents/Dropbox/Applicaties/Business/FirstProject/Xcode/FirstProject/Classes/AppDelegate.m:73:25: 'invokeString' is deprecated
/Users/Tim/Documents/Dropbox/Applicaties/Business/FirstProject/Xcode/FirstProject/Classes/MainViewController.m
/Users/Tim/Documents/Dropbox/Applicaties/Business/FirstProject/Xcode/FirstProject/Classes/MainViewController.m:117:15: 'invokeString' is deprecated
/Users/Tim/Documents/Dropbox/Applicaties/Business/FirstProject/Xcode/FirstProject/Classes/MainViewController.m:121:93: 'invokeString' is deprecated
clang: error: no such file or directory: '/Users/Tim/Library/Developer/Xcode/DerivedData/FirstProject-ctanrqwggcfoubbeqbjrfvcqozpg/Build/Products/Debug-iphoneos/libCordova.a'
Cordova version 2.1.0
Xcode version 4.5.1
I have not been able to install the latest cordova on my computer, on version 2.0.0 there was an installation program but in the latest version this is gone? And I already set the 'Build Active Architecture Only' to Yes and the 'Build Location' to Unique.
Thank you very much in advance.
I've had exactly the same error.
The problem was that I hadn't set the 'Build Active Architecture Only' for both projects.
Your main project & the CordovaLib.xcodeproj.
Hope this helps!
This solved my problem:
Open your project in Xcode.
Click on your project.
Click on your project under Targets.
Hit the build phases tab.
Open “Copy Bundle Resources” near the bottom.
Look for any resources listed in red, and drag/drop them manually there.
Problem solved!
in the CordovaLib Build Settings. Under Architectures -> Valid Architectures, I removed armv6. this worked for me! (iphone 4s phonegap 2.2)
The installer is gone because it is no longer required. Have you followed all the steps from the very helpful getting started guide here? http://docs.phonegap.com/en/2.1.0/guide_getting-started_ios_index.md.html#Getting%20Started%20with%20iOS
I downloaded Cocos2d-iphone 0.99.5 and installed it using ./install-script
I then opened xcode and created a new cocos2d application. When I ran Build and Run it, gave the error 'There is no SDK with the name or path iphoneos'. Searching online I found a solution which said to change the Base SDK setting in Project Settings. I changed it to the Simulator of iphone os 3.1.2.
But now when I Build and Run, it gives me 217 errors. Most are: "float.h No such File or directory" or "stdarg.h No such file or directory"
Any suggestions?
You'll probably need to update Xcode to 3.2.5, with iOS 4.2. Check inside the Project Settings for cocos2d -- I believe the base SDK is up above 4.0, probably at 4.1 or 4.2, by now. If all of the items in the Frameworks folder are red, that means that the project is trying to link to a higher SDK, and can't find anything.