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...
Related
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.
It's my first time trying to use Firebase cloud_firestore together with Flutter. It works fine with the Android emulator. But I am getting the following errors, when trying to Run on the IOS Sim:
/Users/carsoncarbery/development/tools/flutter/.pub-cache/hosted/pub.dartlang.org/cloud_firestore-0.8.2+3/ios/Classes/CloudFirestorePlugin.m:50:22: error: no visible #interface for 'FIRQuery' declares the selector 'queryWhereField:arrayContains:'
query = [query queryWhereField:fieldName arrayContains:value];
~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/carsoncarbery/development/tools/flutter/.pub-cache/hosted/pub.dartlang.org/cloud_firestore-0.8.2+3/ios/Classes/CloudFirestorePlugin.m:221:29: error: no known class method for selector 'fieldValueForArrayUnion:'
return [FIRFieldValue fieldValueForArrayUnion:[self readValue]];
^~~~~~~~~~~~~~~~~~~~~~~
/Users/carsoncarbery/development/tools/flutter/.pub-cache/hosted/pub.dartlang.org/cloud_firestore-0.8.2+3/ios/Classes/CloudFirestorePlugin.m:224:29: error: no known class method for selector 'fieldValueForArrayRemove:'
return [FIRFieldValue fieldValueForArrayRemove:[self readValue]];
^~~~~~~~~~~~~~~~~~~~~~~~
8 warnings and 3 errors generated.
Could not build the application for the simulator.
Error launching application on iPhone 6s.
I've also tried running the Runner directly from Xcode and get the same three build errors. Unfortunately I haven't been able to find an answer to this, so am posting the question. Any help would be gratefully received.
Thanks
I just experienced the same thing.
Following these guys
https://github.com/flutter/flutter/issues/24395
I did
pod update Firebase/Firestore
And it worked for me.
I'm using latest version of cloud firestore: 0.9.0+1
I can compile from both Xcode and VS Code.
There are a lot of warning messages when running on simulator. some of them look pretty nasty, but it works.
i have xcode 4.3 with ios 5.1 and trying to compile and run the project, but it gives error:
Command /Applications/Xcode.app/Contents/Developer/usr/bin/momc failed with exit code 6
i found something in "Data Model Version Compile".. error after upgrading to Lion (Xcode4.1) but it doesn't provide me any suitable solution. It say's to delete unnecessary .xcdatamodel-directories and i did, but i still stuck up there with same issue. Other thing i found that the extension is changed in new xcode its '.xcdatamodeld' instead of '.xcdatamodel'. I copied content content of '.xcdatamodel' file and put in to '.xcdatamodeld' and added to xcode but it gave error at some where else that persistence store might exist. what should i do to run this project..
thanks in advance!!!
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 .
when compiling the code for iWebDriver.xcodeproj I get the following error
error: There is no SDK with the name or path
'/Users/sqaresources/svn_projcts/trunk/iphone/lib/buildtime-src/cocoahttpserver/iphonesimulator3.2'
the following warnings are also shown
Missing SDK in target CocoaHTTPServer: iphonesimulator3.2
Missing SDK in target CocoaHTTPServer: iphoneos3.1.2
I'm running OSX 10.7, Xcode 4.1
Please let me know if there is anything that I can do for this issue.
Thank you
To resolve that problem, navigate to iphone-->lib-->buildtime-src-->cocoahttpserver-->CocoaHTTPServerLibrary.xcodeproj
Open CocoaHTTPServerLibrary.xcodeproj in your xcode (Make sure other instances are closed). And navigate to Build settings and change the 'BaseSDK' to 'Latest iOS(iOS4.3)'.
This should resolve the problem.....