Apple Mach-O Linker error when testing for device - objective-c

I am getting this error Apple Mach-O Linker error, when I am testing on my iPad.
Although it is working well on simulator.
I have checked all the frameworks, but still the error stays.
Heres what the error says:
ld: library not found for -lz
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I dont understand whats going wrong. Please any ideas.. ?
Appreciate your time in advance
Thanks

Without further info I'd say you have som library only compiled for the simulator not the device.

Related

Native linking failed. Please review the build log in Xamarin.iOS Cross platform

I am trying to rebuild my xamarin.iOS project in release mode and i am getting following Errors:
linker command failed with exit code 1 (use -v to see invocation).
error MT5209: Error: warning: ignoring file /Users/admin/Desktop/1DMAPP/MobileApp/MobileApp/MobileApp.iOS/obj/iPhone/Release/mtouch-cache/BEMCheckBox.framework/BEMCheckBox, missing required architecture armv7s in file /Users/admin/Desktop/1DMAPP/MobileApp/MobileApp/MobileApp.iOS/obj/iPhone/Release/mtouch-cache/BEMCheckBox.framework/BEMCheckBox (4 slices) (MobileApp.iOS) Native linking
/Users/admin/Desktop/1DMAPP/MobileApp/MobileApp/MobileApp.iOS/MTOUCH: Error MT5211: Native linking failed, undefined Objective-C class: BEMCheckBox. The symbol '_OBJC_CLASS_$_BEMCheckBox' could not be found in any of the libraries or frameworks linked with your application. (MT5211) (MobileApp.iOS)
/Users/admin/Desktop/1DMAPP/MobileApp/MobileApp/MobileApp.iOS/MTOUCH: Error MT5211: Native linking failed, undefined Objective-C class: BEMCheckBoxGroup. The symbol '_OBJC_CLASS_$_BEMCheckBoxGroup' could not be found in any of the libraries or frameworks linked with your application. (MT5211) (MobileApp.iOS)
/Users/admin/Desktop/1DMAPP/MobileApp/MobileApp/MobileApp.iOS/MTOUCH: Error MT5202: Native linking failed. Please review the build log. (MT5202) (MobileApp.iOS)
I am using the latest and stable version of packages.
My Link Behavior is "Don't Link"
My project supports all architectures
I want to build and release my iOS app. Native linking error is not allowing me to do this.

xcode 7.2 clang: error: unable to execute command: Segmentation fault: 11

clang: error: unable to execute command: Segmentation fault: 11
clang: error: linker command failed due to signal (use -v to see invocation)
I am getting an error when archiving a binary.
Please help
google analytics doesn't support bitcode so I ended up with disabling bitcode in settings to get rid of this error
Your compiler is crashing. Click on the error, it will take you to the full log; sometimes there is more info there.
If this is Swift then it was happening to me a lot when making mistakes with blocks (e.g. missing a return or returning the wrong type). But it could be anything. You have to figure out what is causing the crash.
Also, upgrade to Xcode 7.3; maybe it is fixed there. You need to anyway if you're going to submit that app.

Segmentaion Fault (Core Dumped) error while compiling project in MPLABX with C30 Compiler

I am trying to program a Microchip pic mirocontroller. I am using Ubuntu 14.04LTS. When ever I try to build my project with MPLABX IDE and C30 v3.30c compiler, after all the files have been compiled, I get,
Segmentation fault (core dumped)
make[2]: *** [dist/default/production/MYproj.X.production.hex] Error 1
make[1]: *** [.build-conf] Error 2
make: *** [.build-impl] Error 2
make[2]: Leaving directory `/home/siddharth/work/MYproj.X'
make[1]: Leaving directory `/home/siddharth/work/MYproj.X'
BUILD FAILED (exit value 2, total time: 4s)
I'm almost sure it is got something to do with my setup of the IDE as I have already used ubuntu and MPLABX for embedded development without any issues.
Can some one help me? any help would be greatly appreciated.
Thanks!
This is an Internal Compiler error, a bug in the Compiler, triggered by a code sequence in your project. Typically the Compiler reports the line of code where the Segment fault has happened, along with the Compiler's source file name.
Most probably this should be fixed with the MPLAB C30_v3.31, which is available for download from the address
http://www.microchip.com/stellent/idcplg?IdcService=SS_GET_PAGE&nodeId=2115
If not then you can try the latest XC16 Compiler, available for download from the website
microchip.com/compilers
If the issue persists, submit a ticket to the "support.microchip.com"; along with your complete project; so that Microchip can look into this and fix the issue.

Build Failed Error in Titanium iOS project

I am using Titanium 3.1.3 GA version.
While include mobile app tracking module in project, getting "Build Failed" Error message.
Tried with new project also getting the same error.
[ERROR] : ** BUILD FAILED **
[ERROR] : The following build commands failed:
[ERROR] : Ld build/Debug-iphonesimulator/MoibleAppTrackingSample.app/MoibleAppTrackingSample normal i386
[ERROR] : (1 failure)
Please let me know about the issue and how could i fix this.
i386 means you were running on IOS, if yes then please paste the whole log here, so that we can figure it out actually. Because there may be many issue like sdk problem and all. i386 architecture is used for simulators.
Go in finder where this project is and then click BUILD/iphone/ then click on Xcode project. And from there try to build.
Are there any more details about in the log?
What module did you use? did you download it from the MarketPlace?
Try doing a Clean Project and try again.

Text Input Source Services gives Mach-O Linker error for architecture x86_64?

I'm attempting to use Text Input Source Services to detect the current keyboard layout:
TISInputSourceRef source = TISCopyCurrentKeyboardInputSource(); //Mach-O Linker Error
NSLog(#"languages: %#", TISGetInputSourceProperty(source, kTISPropertyInputSourceLanguages));
NSLog(#"localized name: %#", TISGetInputSourceProperty(source, kTISPropertyLocalizedName));
Which is a ('modern') carbon function I reference with: #import <Carbon/Carbon.h>
Docs: (don't mention anything about x86 vs. x64)
http://developer.apple.com/library/mac/#documentation/TextFonts/Reference/TextInputSourcesReference/Reference/reference.html
Undefined symbols for architecture x86_64:
"_TISCopyCurrentKeyboardInputSource", referenced from:
-[XXXFILE YYYEVENT:] in ZZZPROJECT.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Is there a reason I can't use TIS with the x86_64 compiler?
Thanks to Bavarious's comment on the qusetion, added the Carbon.framework rather than just #includeing it. Answer with a real Stack Overflow Answer and I will upvote it!