I've downloaded code from Apple Sample Source Code and try to run on Xcode 7.1 and OS X 10.11.1. I'm getting error as SwiftC failed with exit code 1. I've tried all solutions mentioned on Stackoverflow link but none worked.
Any fix?
Earlier I had three Xcode in my Mac machine viz Xcode 6.4, 7.1 and 7.1.1.
I got the earlier two version of Xcode removed from system. Thereafter I tested Apple 3D touch Sample code on Xcode 7.1.1 and it worked correctly.
Related
Getting this error when running any MFP 6.3 app in Xcode 10.1:
Showing All Issues :-1: library not found for -lstdc++.6
:-1: linker command failed with exit code 1 (use -v to see invocation)
The same is working in Xcode 9.0/Xcode 8.0 version.
How this issue can be particularly solved for IBM Mobilefirst 6.3 iPhone Apps. Also, Apple Store is not accepting build made with Xcode 9.0. Also tried MFP 6.3 latest fix but it is not solving the issue.
MobileFirst 6.3 doesn't support iOS 12/Xcode 10 - you should upgrade to MobileFirst 7.1 or 8.0.
Having said that, you can try the solution given in this link ( https://mobilefirstplatform.ibmcloud.com/blog/2018/07/23/mfp-support-for-ios12/#known-issues )
lstdtc++ is deprecated in recent versions. I have faced this issue and it is resolved after following the steps mentioned in https://github.com/Kila2/libstdc-.6.0.9.tbd
Download the Files from Github
1. For simulator to work, copy the files from iPhoneSimulator to path "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/usr/lib/"
2. For actual devices to work, copy the files from iPhoneOS to paths as mentioned in the link w.r.t Xcode version.
I did the same and restart XCode. It works post this.
Currently running on OS X 10.11 Beta 2 with Xcode 7 installed but right now trying to use Swift 2.0 REPL and I'm currently bumping into the following issue:
Welcome to Apple Swift version 2.0 (700.0.42.1 700.0.53). Type :help for assistance.
1> "100".toInt()
Error in auto-import:
failed to get module 'Swift' from AST context
1>
Is there a certain setting or package I need to play around with to get it working?
It seems the error was due to either an issue with the command line tools being installed after Xcode or me removing Xcode 6 as El Capitan Beta 2 only supports Xcode 7 Beta for now.
For now making sure xcode-select points to the right location was the solution I needed.
sudo xcode-select -s /Applications/Xcode-beta.app/Contents/Developer
Mind you all that I only found this error after trying to build with the Ionic Framework as well.
Kudos to tjmehta for his answer to a similar issue.
The application "Xcode5.1.1" can't be opened.
I use x-code 5.1 to build iOS apps, now when i installed x-code6 beta version to implement app with swift language then xcode 5.1 is not working. It is giving me such error-
I use to resolve problem with Xcode 4.6.3 crashing after installing xcode 6 beta but not found this useful for my case.
I have tried to restart machine but it is giving same error. I googled for it but not got useful stuff. Any help would be appreciated.
Try to select different "Command line tools" in the bottom of Xcode -> Preferences -> Locations.
You can do it in your working Xcode 6.
After trying more I found it useful
Restart your machine then it can work, if not like my case then try below command in your Terminal
sudo mv /System/Library/PrivateFrameworks/MobileDevice.framework{,-saved}
then again restart your machine then it will ask for installing few components of Xcode so allow it, then your Xcode 5.1.1 will work fine.
I have used Xcode 5, my appcode is working fine in 10.8 OS but when i am updating it with 10.10, code shows an error i.e.
Command/Applications/Xcode2.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/ibtool failed with exit code 255
You need to reinstall the Xcode to rectify this error because you update to OS X Yosemite beta, some files are in conflict now.
I'm moving my first steps in MonoMac.
But I stopped right at the beginning due to some configuration error. I've created a new ManoMac project in MonoDevelop, and then tried some other sample MonoMac xamarin projects from GitHub, but I always get this error compiling:
Error: Can't run /Developer/usr/bin/ibtool (no such file).
ibtool exited with code 1
My configuration:
Operating System:
Mac OS X 10.7.3
MonoDevelop 2.8.6.5
Runtime:
Mono 2.10.8 (tarball Mon Dec 19 17:43:18 EST 2011)
GTK 2.24.5
GTK# (2.12.0.0)
Mono for Android not installed
Apple Developer Tools:
Xcode 4.3.1 (1176)
Build 4E1019
Monotouch: 5.2.5
MonoDevelop.MonoMac 2.6.0.0
All my Monotouch projects compile fine, and I have no problem with the last XCode (following the Xamarin guidelines I successfully upgraded XCode and moved it from the obsolete Developer folder to the Application folder, and downloaded the updated developer command line tools from apple).
I've tried reinstalling MonoDevelop, but with no success. I always get: "Error: ibtool returned error code 1."
Any help is appreciated.
This problem is caused by the Xcode 4.3 installer not updating the Xcode symlinks correctly to point to the active Xcode version. You can fix it with the following command:
sudo xcode-select -switch /Applications/Xcode.app
This upcoming MonoDevelop 2.8.8 release contains a fix for this. You can get it from the beta update channel.
It looks like the MonoMac addin was never updated to work with Xcode 4.3.
A temporary workaraound is to setup symlinks in the proper places in /Developer.
I found the way in the MonoMac forum:
http://mono.1490590.n4.nabble.com/MonoMac-and-XCode-4-3-ibtool-error-Solution-td4403822.html
I report it here:
When using MonoMac and Xcode 4.3, the current MD beta build fails with an ibtool error.
The solutions is to type the following commands in the Terminal console:
sudo rm /usr/bin/ibtool
and then:
sudo ln -s /Applications/Xcode.app/Contents/Developer/usr/bin/ibtool /usr/bin/ibtool
Now it compiles fine.
I got a similar error running Xamarin on Xcode 6.2 and I solved the problem by re-installing the same version of Xcode again replacing the old version per the suggestion on this post: xcode-select active developer directory error on OSX Mavericks.
I may have caused this problem as I was renaming XCode Application. I have several versions installed and was trying to keep them all straight.