I tried to build condenameone project with googlemaps extension but it failed.
this is the error log :
The following build commands failed:
CompileC build/Build/Intermediates/ArchiveIntermediates/DanoneCodi/IntermediateBuildFilesPath/DanoneCodi.build/Release-iphoneos/DanoneCodi.build/Objects-normal/armv7/com_codename1_googlemaps_InternalNativeMapsImpl.o DanoneCodi-src/com_codename1_googlemaps_InternalNativeMapsImpl.m normal armv7 objective-c com.apple.compilers.llvm.clang.1_0.compiler
(1 failure)
Failed xcodebuild step
How to fix this?
further question, if I want to decided to remvoe the googlemaps extensions, how to do it?
That's a partial log, we need the full log to help.
A common problem is developers including the cn1lib but not actually using it which fails as a callback collides with the optimizer that strips away unused parts.
Related
I keep trying to build my Flutter app on iOS but I keep getting an error. I have tried everything. I imported my project from GitHub, where I uploaded it from Windows.
I followed every step, and I added the iOS app on Firebase and now when wanting to compile I am unable, and very frustrated. Please help.
objc[7346]: Class AMSupportURLConnectionDelegate is implemented in both ?? (0x20d9f4188) and ?? (0x113d402b8). One of the two will be
used. Which one is undefined.
objc[7346]: Class AMSupportURLSession is implemented in both ?? (0x20d9f41d8) and ?? (0x113d40308). One of the two will be used. Which one
is undefined.
** BUILD FAILED **
Xcode's output:
↳
/Users/davor/Developer/Projects/Explovid/ios/Runner/GeneratedPluginRegistrant.m:10:9: fatal error: module 'cloud_firestore' not found
#import cloud_firestore;
~~~~~~~^~~~~~~~~~~~~~~
1 error generated.
error: the following command failed with exit code 1 but produced no further output
CompileC
/Users/davor/Library/Developer/Xcode/DerivedData/Runner-cnftrifzvgjcpyadycxyixuvtnnj/Build/Intermediates.noindex/Runner.build/Release-ipho
neos/Runner.build/Objects-normal/arm64/GeneratedPluginRegistrant.o
/Users/davor/Developer/Projects/Explovid/ios/Runner/GeneratedPluginRegistrant.m normal arm64 objective-c
com.apple.compilers.llvm.clang.1_0.compiler
note: Using new build system
note: Building targets in parallel
note: Planning build
note: Constructing build description
Encountered error while building for device.
I had the same issue. Installed ffi and fixed:
arch -x86_64 sudo gem install ffi
best answer i found that works is URL below...I found all sorts of issues with M1 ... need to ensure you run from terminal with rosetta ticket in "get info" dialogue box. Its convoluted process.
https://github.com/GoogleCloudPlatform/ios-docs-samples/issues/43
I followed the instructions on how to add 3rd party libraries and implement native interfaces (all 3 parts, not just this first one). I am getting build errors that seem related to these interfaces, but after deleting the files, I am still getting the following error:
The following build commands failed:
CompileC build/Build/Intermediates/ArchiveIntermediates/MyApp/IntermediateBuildFilesPath/MyApp.build/Release-iphoneos/MyApp.build/Objects-normal/armv7/native_org_myapp_InterfaceTestPDFImplCodenameOne.o MyApp-src/native_org_myapp_InterfaceTestPDFImplCodenameOne.m normal armv7 objective-c com.apple.compilers.llvm.clang.1_0.compiler
I have removed the org folders from each of the native folders. What can I do to get rid of this error?
Thanks.
I have a project, that builds perfectly from xCode 7, but fails from bash. I'm pretty new to command line using for this purposes, so not sure, what additional info I should provide. It just runs through tons of source files and fails in CompileC section.
It brings single message:
The following build commands failed:
CompileC path to buildObjects-normal/armv7/PGDataManager.o path to source PGDataManager.m normal armv7 objective-c com.apple.compilers.llvm.clang.1_0.compiler
It's something with this specific source, I suppose, but I wonder why it works perfectly from xCode? Also, I've checked this PGDataManager and everything looks fine.
If I can provide additional info - please ask me.
I succeeded in this after some researches. Here are my steps, if anybody approach similar issues:
at first I disabled "Find Implicit Dependencies" in settings and tried to build it from xCode again. a lot of mistakes with headers appeared, I fixed them
I used workspace, instead of xcodeproj
setting ARCHS seems unnecessary
When I am sending iOS build with new Codename One Scanner library (I varify import statement and its import com.codename1.ext.codescan.CodeScanner;)
then I am getting following error generated on server and iOS build is failed.
In file included from /var/folders/p_/xlvwhg4101z8r81_nl13cds80000gn/T/build8058354584873816611xxx/dist/StockTake-src/com_codename1_ext_codescan_NativeCodeScannerImpl.m:2:
In file included from /var/folders/p_/xlvwhg4101z8r81_nl13cds80000gn/T/build8058354584873816611xxx/dist/StockTake-src/ScanCodeImplExt.h:13:
/var/folders/p_/xlvwhg4101z8r81_nl13cds80000gn/T/build8058354584873816611xxx/dist/StockTake-src/CVZBarReaderViewControllerExt.h:3:9: fatal error: 'ZBarReaderViewControllerExt.h' file not found
** BUILD FAILED **
The following build commands failed:
CompileC build/StockTake.build/Release-iphoneos/StockTake.build/Objects-normal/armv7/com_codename1_ext_codescan_NativeCodeScannerImpl.o StockTake-src/com_codename1_ext_codescan_NativeCodeScannerImpl.m normal armv7 objective-c com.apple.compilers.llvm.clang.1_0.compiler
(1 failure)
its working for android, only iOS is having issue.
-----Edit-----
I have downloaded .cn1lib from the link provided in installation step on https://github.com/codenameone/cn1-codescan and I downloaded it today again to check latest.
It looks like I forgot to upload the lastest build after fixing this same issue back in December. I have rebuilt with latest sources and uploaded the cn1lib. Try downloading again. Should work now.
I just upgraded Xcode to 7.1 recently. Now I cannot compile my code. It says:
The following build commands failed:
CompileC
/Users/User_Name/Library/Developer/Xcode/DerivedData/StudywizSchool-bbmsbrwirrgkhwghtalynzbkavjz/Build/Intermediates/StudywizSchool.build/Release-iphoneos/StudywizSchool.build/Objects-normal/armv7/SWELockerItem-570C86C95F8D9976.o
shared/model/SWELockerItem.m normal armv7 objective-c
com.apple.compilers.llvm.clang.1_0.compiler
While I don't know why it failed I thought llvm compiler should be higher than 1.0? If so how could I upgrade it? Thanks in advance!
This means that the error is in the SWELockerItem.m file.
You can find ‘SWELockerItem.m’ keywords in the log(Cmd+F), maybe you can find the error message like this, and it's the real error =。=
I hope this will work -
Change your Deployment Target and then clean and run the application.