Linker error on TestTargets Xcode - swift

I have started receiving following error suddenly on TestTarget, not sure what has changed
Showing All Issues
ld: -bundle and -bitcode_bundle (Xcode setting ENABLE_BITCODE=YES) cannot be used together
I have turned off bitcode already on app build target.
App is building fine and running , this error appears only for testing .

Related

Xcode error: building for iOS Simulator, but linking in object file built for iOS

Never had a lot of problems until the time to buy Macbook Air M1. Just yesterday my app was build without any error in Xcode 12.4. I did not make any special changes and today build failed:
/Users/userName/Projects/MyApp/ios/Pods/OpenSSL-Universal/ios/lib/libcrypto.a(cryptlib.o), building for iOS Simulator, but linking in object file built for iOS, file '/Users/userName/Projects/MyApp/ios/Pods/OpenSSL-Universal/ios/lib/libcrypto.a' for architecture arm64clang: error: linker command failed with exit code 1 (use -v to see invocation)
Please can you help me, how to solve it?
Looks like a missing Arm64 simulator slice in the OpenSSL-Universal CocoaPods distribution.
Make sure that you're using the latest version with pod update and contact the OpenSSL-Universal if there's still an issue.

Error in compiling SenTestingKit while using google navigation in ios app

I am getting error while i am compiling my project.
"building for iOS Simulator, but linking against dylib built for
MacOSX file '/Applications/Xcode
3.app/Contents/Developer/Library/Frameworks/SenTestingKit.framework/SenTestingKit'
for architecture x86_64"
I have search this problem but couldnot get solution and i am stucked in this problem since 3-4 days.
Thanks

clang: error no such file or directory: */Debug-iphonesimulator/MailCore/MailCore

I am using mailcore2 in my ios app from fetching my gmail account emails on my device. I have changed the ios sdkversion from 6.1 to 6.0 in the mailcore2 scripts bcz I am trying to compile and run the app using iPhone simulator 6.0 which uses ios sdkversion 6.0. Doing so I am getting the following clang error.
clang: error: no such file or directory: '/Users/shujaat/Library/Developer/Xcode/DerivedData/MyTestApp-ditognlaoajwldfliplqecnxqbfj/Build/Products/Debug-iphonesimulator/MailCore/MailCore'
While trying to compile and run my app using iphone simulator 6.1 (uses ios sdk 6.1), with no changes in the ios sdk version in the shell scripts, I am getting the following error:
/bin/sh /Users/shujaat/Documents/WemoTech/Products/WantList/sourcecode/ThirdPartyLib/MailCore2/Externals/builds/workdir/20130930192723/src/libetpan/build-mac/update.sh
configuring
running prepare-cyrus-sasl.sh
prepare sources
patching file lib/client.c
building tools
generated makemd5i386 properly
building for iPhoneOS - armv7
CONFIGURE FAILED
Command /bin/sh failed with exit code 1
These issues are driving me crazy for the last couple of days. Need your help.
Go to your main project target->"Build phases"->"Target dependencies" add mailcore2 ios
You need to read Check Adding MailCore to Your iOS Project carefully.
These issues are fixed now. I want to explain what I did to get rid of them for others facing same issues:
I made a separate project, and made mailcore2 as a part of it (didn't include the #import line in any of the project files at first). I compiled and run the project and copied the resultant mailcore 2 from it to my original project. It's compiling and running fine now.

kobold2d ios device build failed

i am trying to run my kobold2d project on my iphone 4 but it gives me build failed ,
Apple Mach-O linker error.
Cocos2d projects run fine so i don't have any problem with my provisioning profile.I am opening kobold2-0-4.xworkspace. By the way the same project runs perfecty on ios Simulator
Error is:File not found: /Users/bigayvaz/Library/Developer/Xcode/DerivedData/Kobold2D-canokjowlgyrikflbvkipwwnizsr/Build/Products/Debug-iphoneos/libkobold2d-ios.a
Linker command failed with exit code 1
By the way i use xcode 4.5.2

unable to build xcode4.3 because getting command failed with exit code 1

I am new to develop iphone and phonegap also. Now I wants to create iphone app using Phonegap. So I installed Phonegap 2.0 in my lion mac. Now I want to run the UIWebView using phonegap. I have followed this link for my guidelines:
When I run the project I got the below error in XCode 4.3:
clang: error: unsupported option '--DNS_BLOCK_ASSERTIONS=1'
Command/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang failed with exit code 1
I have attached the screen shot of the error.
Please help me to solve the issue and run UIWebview in phonegap 2.0 CordovaLib.
the error is
clang: error: unsupported option '--DNS_BLOCK_ASSERTIONS=1'
which should be -DNS_BLOCK_ASSERTIONS=1
go to the build settings, search of "other c flags"/"other c++ flags", and change --DNS_BLOCK_ASSERTIONS=1 to -DNS_BLOCK_ASSERTIONS=1