kobold2d ios device build failed - iphone

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

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.

flutter run, dependencies in IOS

I try to create an flutter app. i start create Android project in ubuntu it works very fine. But then i mvoe the project into MacOS (Update system 10.15.4 and Xcode 11.4.1) then i get error compile into a real IOS device.
Here is my output:
frederikfrnadsen#demos-MBP barcode $ flutter run
Launching lib/main.dart on iPhone in debug mode...
Found saved certificate choice "iPhone Developer: Frederik Frandsen (W5W828HUYY)". To clear, use "flutter config".
Signing iOS app for device deployment using developer identity: "iPhone Developer: Frederik Frandsen (W5W828HUYY)"
Running pod install... 1,7s
Running Xcode build...
Xcode build done. 17,6s
Failed to build iOS app
Error output from Xcode build:
↳
** BUILD FAILED **
Xcode's output:
↳
/Users/frederikfrnadsen/sdk/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_barcode_scanner-0.1.7/ios/Classes/FlutterBarcodeScannerPlugin.m:2:9: fatal error:
'flutter_barcode_scanner/flutter_barcode_scanner-Swift.h' file not found
#import <flutter_barcode_scanner/flutter_barcode_scanner-Swift.h>
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
note: Using new build system
note: Building targets in parallel
note: Planning build
note: Constructing build description
Could not build the precompiled application for the device.
Error launching application on iPhone.
Thanks for your time !
Try: (rm -rf ios/Flutter/App.framework)
it works for me !

Xcode 7 - Build script not generating framework

I am trying to generate a .framework on Xcode 7 and always get an error -
Details: Scheme was asked to build and archive, but the run destination is not a deployment platform and this action shouldn't have been allowed.
xcodebuild: error: Failed to build project UnitedSDK with scheme UnitedSDK.
Reason: You cannot archive for the iOS Simulator platform.
Command /bin/sh failed with exit code 70
Tried to change Targets, but nothing helps. This used to properly work on Xcode 6.

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.

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