Apple LLVM compiler 3.0 Error comes in IPhone Phonegap BarcodeScannerplugin - iphone

I want to run Iphone Phonegap BarcodeScanner plugin in IPAD. I have gone through the zing document and Barcode read.txt files(git hub) . I did the actions mentioned in the documents but it will showing Apple LLVM compiler 3.0 Error . I have changed 3.0 to 4.2 version also but no change . so can any one guide me .
This the error if put 4.2 version
Command /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/llvm-gcc-4.2 failed with exit code 1
If i changed to 3.0
it shows this error clang error exit code 1
No i am using Xcode 4.2 version . I have changed all the things mentioned in the above link but it showing the the error following error Command /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/llvm-gcc-4.2 failed with exit code 1

use this link
and read this topic"Compile Errors for Automagic Reference Counting (ARC)" in this link
and implement . I have resolve my problem .

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.

Cannot create the archive file in ios 6

i have created iphone application. and i took the file and published the it in app store. But i have upgraded my xcode and changed the os to 4.3 - 6.0 . Now when im trying to archive the project , gives me this error.
Command /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/llvm-gcc-4.2 failed with exit code 1
I checked by my architecture & compiler . they are,
Architecture - Standard(armv7,armv7s)
Compiler - LLVM GCC 4.2
What would be the problem ???
Remove armv7s from there and check
Check what value is in "Build Active Architectures Only" . If No, set that to Yes and try to build.

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

How to resolve Phonegap error while Building the app

all
I made a sample application with the help of Phonegap, while building the app it gives me two error .
Error1:
error: 'NSEC_PER_MSEC' undeclared (first use in this function)
Error2:
Command /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/llvm-gcc-4.2 failed with exit code 1
by the way I am using Xcode 3.2.5 (4.2),
can any buddy know this answer then plz tell me..
it is for the xcode 4.3 only?? b/c on this link http://www.phonegap.com/start they run their application through xocde 4.3
Ran into the same problem - seems there is a typo in their production code. You need to change 'NSEC_PER_MSEC' to 'NSEC_PER_SEC' and it should work fine...
Just comment that line.. of code because it has no actual use to test I had the same error and was resolved by commenting :P.. and it runs on ios 4.2 smoothly...

SQLite iPhone error,

I am following through this tutorial and after completing it I am getting an error on build.
The error isn't associated with any line of source code though.
This is the error I get:
Line Location Tool:0: collect2: ld returned 1 exit status
Line Location Tool:0: symbol(s) not found
Line Location Tool:0: -[todo initWithPrimaryKey:database:] in todo.o
Line Location Tool:0: "_sqlite3_bind_init", referenced from:
I'm not sure what the error is.
The tutorial is building for the iPhone 2.0 framework but I am building for 3.0.
Their libsqlite3.0.dylib is from the iPhone 2.0 SDK whereas mine is from the 2.2.1 SDK (that's the newest version that is over 1mb)
I've tried the 2.0, 2.2.1 and 3.0 framework libsqlite3.0.dylib files, they all provide this same error.
Could anyone give me some advice on what to do here? I've tried googling the error and I get nothing at all.
I was getting more errors similar to this one until I realized that I was using the libsqlite3.0.dylib from the OS X SDK not the iPhone SDK. Once I switched that I only had this error left.
Was a typo.
sqlite3_bind_init was supposed to say:
sqlite3_bind_int
init vs int.
Oops!
Bye!