Xcode 9 simulators does not run - ios

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.

Related

Not able to build ionic3 ipa in mac os 10.13.2 using xcode 9.0

I am trying to build ipa for ionic 3 app in mac using xcode version 9.0.
As per the document I think I got the steps correctly, however I am not able to go through this step.
The error message reads like this:
clang: error: linker command failed with exit code 1 (use -v to see invocation)
How can I fix this issue.

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.

iOS Simulators are not working in Xcode 6.1.1?

Iam able to run my project in iPad and iphone but when i tried to run it in iPad simulators
but then i got this error .
ld: building for iOS Simulator, but linking against dylib built for MacOSX file '/Users/apple/Documents/releaseAPICON2015/SenTestingKit.framework/SenTestingKit' for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
please check this link for screenshot
Error
Please tell me how to get back all simulators in xcode 6.1.1
You are trying to link SenTestingKit.framework in you iOS project. You cannot use OS X binaries in iOS Simulator apps as they are not compatible.
On older versions of iOS, you would encounter runtime errors (incorrect values or crashes). On iOS 8.0, this became a link-time error.
You need to build a version of SenTestingKit.framework for iOS. Hope this helps.. :)

iOS - Can't Build on Device but Simulator on Xcode 4.6

I'm now using Xcode 4.6 but cannot build my app on a device but perfectly working on simulator. It is looking my lbxml2, I already followed the solutions given by other users like adding "${SDK_DIR}/usr/include/libxml2" to Header Search Paths under Build Setting, include in Link Binary With Libraries under Build Phases but still no luck.
Before I switched to Xcode 4.6, it was building on Xcode 4.5. So, I really don't know what is wrong.
Thanks!
EDIT:
I am getting this error:
ld: library not found for -lxml2
clang-real++: error: linker command failed with exit code 1 (use -v to see invocation)
Command /Applications/Xcode 4.6/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ failed with exit code 1
How are you trying to link your library in?
A "-lxml2" line in your build settings?
When I add my dylibs to my project, I usually do it the way you see in my screenshot.
Try this and see if it works for you also:

Resources