Failed to run new ios xcode project - ios

I have Yosemite 10.10.3 installed with Xcode 6 downloaded from Mac App Store. When I try to execute one Single view application project, newly created, without modify anything, I get the following error:
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Have I to install anything? Any idea of what's happening?
(Xcode newbie)

That could mean a few things, did you make sure to make the first view the "initial view controller"?
Is there any other error message or is there somewhere in your code that caused an error?

Related

Xcode 9 simulators does not run

I'm getting error while running an application on simulator using Xcode 9.2. Can not run project on simulator devices.
Error:
clang: error: linker command failed with exit code 1 (use -v to see invocation)
And in my CoreSimulator.log file I have seen:
Spawning processes in an unbooted state without setting kSimDeviceSpawnStandalone is deprecated.
I tried to remove derived data, quit Xcode and reopen does not solve my issue. Could you please help to solve this bad situation?
My mac OS version: 10.13.2(High Sierra)
Xcode version: 9.2
I found solution;
In my target -> build phases -> link binary with libraries section
lib386.a
multiplexed. Because of my third party's "xxx.a" library which contains "lib386.a".
Deleted "lib386.a" in link binary section and then simulator runs.
Thanks all.

universal framework for distribution

Hello to all my dear friends, I look for your help once again. I created a personal framework and, following Internet guides, managed to run it simultaneously on both iosSimuletor and device. The problem occurs when, try to create the archive and then send to itunes connect. I pushed this error: clang: error: linker command failed with exit code 1 (use -v to see invocation). I started out from everything, changed from debug to release, other things found online. But nothing. Do you know what I have to change to the framwork project before I create the square? thank you

Unity4XC plug-in error

I'm using Unity 4.6 and Xcode. After updating Xcode to 7.1 version I'm getting this error while trying to run build for iphone:
Unexpected code bundle “Unity4XC.xcplugin”
The “Unity4XC.xcplugin” code bundle is not provided by Apple. Loading code not provided by Apple can have a negative effect on the safety and stability of Xcode or related tools.
I clicked on "Load Bundle".
Since then I'm getting this error:
Xcode quit unexpectedly while using the Unity4XC plug-in.
Click Reopen to open the application again. Click Report to see more detailed information and send a report to Apple.
I tried to open the project from within the Xcode program and it still not working.
If I try to open the project manually I get this error in xcode:
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Is there a connection to the problem?
What should try to do now?
Thanks.
Unfortunately, it's currently a known issue:
http://issuetracker.unity3d.com/issues/ios-build-and-run-doesnt-work-with-xcode-7-and-7-dot-1

iOS Xcode compile error: unable to execute command: Segmentation fault: 11

I have a project which compiled perfectly in the past, but after the last Xcode update (6.3.2) I get a compile error whenever I try to run it directly on a device. Building and Running it in the simulator works fine. The Archive function works fine as well. But no matter what device I connect or what iOS version the device is running, I always get the same compile error:
Stack dump:
0. /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.3.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CIFilter.h:221:39: current parser token 'NS_REQUIRES_NIL_TERMINATION'
clang: error: unable to execute command: Segmentation fault: 11
clang: error: clang frontend command failed due to signal (use -v to see invocation)
Apple LLVM version 6.1.0 (clang-602.0.53) (based on LLVM 3.6.0svn)
Target: arm-apple-darwin14.3.0
Thread model: posix
clang: note: diagnostic msg: PLEASE submit a bug report to http://developer.apple.com/bugreporter/ and include the crash backtrace, preprocessed source, and associated run script.
clang: note: diagnostic msg:
********************
PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang: note: diagnostic msg: /var/folders/p5/2yjs4f055hb0vvgl12yvj38r0000gq/T/SmallAdsSystem-a86b3e.m
clang: note: diagnostic msg: /var/folders/p5/2yjs4f055hb0vvgl12yvj38r0000gq/T/SmallAdsSystem-a86b3e.cache
clang: note: diagnostic msg: /var/folders/p5/2yjs4f055hb0vvgl12yvj38r0000gq/T/SmallAdsSystem-a86b3e.sh
clang: note: diagnostic msg:
********************
It shows me random files that I'm supposed to submit to the bug report.
I haven't made any code changes from a working version to the version causing the current problems and I even reverted to an earlier version which is live and running in the Appstore but still the same error.
I have deleted xcode and installed again trough the app store
I tried making changes to my code to maybe pinpoint any problems but since the source file of the problem changes every time, I don't really think anymore that it has anything to do with my code.
This is driving me mad.
Any help is much appreciated
I tried to add the paypal framework to my iOS Project (Using Xcode 7.2 and Objective-C language), When building it is not giving any error, but when I try to archive the Project and trying to make the IPA, I am getting that Error
unable to execute command: Segmentation fault: 11
Screenshot:
After huge trying I have disabled the Bitcode in Project's Target->Build Settings->Enable Bitcode. Now the build can be achieved. Please check the following screenshot.
I found a fix for my problem:
I'm using a virtual machine and opened the project directly in the shared folder. I moved the project to the documents and now it works!
unable to execute command: Segmentation fault: 11.
I was able to turn off the bitcode and able to achieve the ipa.
An in depth of what bitcode means can be seen here
We've just realized that segfault was caused by invalid unicode characters in our sources.
If you are using a virtual machine, then copy the files inside the virtual machine, don't import from your shared files, and it will work.
I had the exact same problem.
In my case I looked at the offending file and played around with it. I was able to resolve the error by commenting out a giant NSDictionary declaration:
NSDictionary* glyphNameToUnicode = [[NSDictionary alloc] initWithObjectsAndKeys:
#"A", #"A",
#"\u00C6", #"AE",
#"\u01FC", #"AEacute",
#"\u01E2", #"AEmacron",
This thing had probably 300 lines maybe more. Instead I moved the declaration into a file and loaded the dictionary from the file. Not sure if that helps, but in my case those files were not random...
Its deff a bug with xcode though...
Pods are provided xcode/.... path for installation from git and i installed xcode 7.3.1 and its named like xcode3 so i face this type of error but when i renamed it to xcode then this error is solved for me.
So In summary, First of all please check your xcode name in application section.
If it is not xcode then please rename it to xcode and try to run your app.
Apparently it was a bug in my Xcode version. Had to revert to an old one and everything worked again. With the newest update everything was working ok again.
In order to solve a problem (a known bug closed as a duplicate as of this writing) that caused apps built under 10.12 (macOS Sierra) to fail to launch under 10.9 (even when they'd done so without trouble previously), I'd installed 10.11 and Xcode 7.3.1 under a VMWare instance. Xcode (due to laziness on my part) was copied to the Desktop.
After reading SmarterSusheel's answer regarding a renamed Xcode, it dawned on me it may be path-related, so I moved Xcode to /Applications and tried again. Problem (mostly) solved. I say "mostly" because I also had to copy my project folder into the VMWare instance since it seemed to have issues building under the shared folder as well.
Setting Link-Time Optimization to NO in both Debug and Release mode is what resolved the problem for me.
I was facing similar issue:
clang: error: unable to execute command: Segmentation fault: 11
clang: error: linker command failed due to signal (use -v to see invocation)
Simply updating from Xcode 7.2 to 7.3.1 has resolved the issue!
I only had problem for i386 architecture when building for iPhone 4s simulator running 9.3
When disabling bitcode didn't work (suggested above), i tried to look at the source code. I didn't find any ascii related stuff (suggested by others), so I tried to comment out method by method until I found the offending line. For me the error was caused by this:
let keyboardSize = ((info![UIKeyboardFrameBeginUserInfoKey] as AnyObject).cgRectValue.size)
Changed it into:
let keyboardSize = (info![UIKeyboardFrameBeginUserInfoKey] as! NSValue).cgRectValue.size
Quit and reopen the Xcode worked for me !
make sure you clean the build folder after reopening the Xcode !
I was facing similar issue:
clang: error: unable to execute command: Segmentation fault: 11
clang: error: linker command failed due to signal (use -v to see invocation)
then i was change my Provisioning profile.

xcode 4.5 conversion issue

I JUST finished my first app in Xcode 4.3.2 and want to test it on my iPhone which I (unfortunately) updated to OS 6 without thinking about the fact that I'd probably have to be using Xcode 4.5. So I downloaded the the 4.5 and tried to open my project in it, and I get the following error message all of a sudden:
apple mach-o Linker Error
Linker command failed with exit code 1 (use -v to see invocation)
My app was running JUST FINE in 4.3.2. I did not touch anything, I only opened the app in the new version and now I get a build failed with the above error. Can anyone help!? this is so frustrating! My app has Facebook integrated into it, so maybe that is related? I have no idea... any help would be greatly appreciated.
Hmm maybe you could try to see if the Facebook framework is added..

Resources