Error compiling to IOS

39 views
Skip to first unread message

candid...@gmail.com

unread,
Oct 16, 2017, 3:59:52 PM10/16/17
to CodenameOne Discussions
Hi

I developed an App in codename One, 

On the previous version this work fine in IOS and Android, I used the GoogleMaps.cn1lib.

Because I need to use some features not available in GoogleMaps.cn1lib for example Clustered Markes, I develop the map in a webBrowser component from scratch.

On the simulator and Android works fine, but this App not compile to IOS, I atach the log file.

I was try to delete de GoogleMaps.cn1lib and GoogleMaps.ver from the lib directory and send it to compile but it fails.

Can you help me?



** ARCHIVE FAILED **


The following build commands failed:
	CompileC build/Build/Intermediates/ArchiveIntermediates/App/IntermediateBuildFilesPath/App.build/Release-iphoneos/App.build/Objects-normal/armv7/com_codename1_googlemaps_InternalNativeMapsImpl.o App-src/com_codename1_googlemaps_InternalNativeMapsImpl.m normal armv7 objective-c com.apple.compilers.llvm.clang.1_0.compiler
(1 failure)
Failed xcodebuild step


Best Regards Kandy
a8a3c8f8-225e-40d5-aae4-1eb5c53ae737-1508182867914-error.txt

Shai Almog

unread,
Oct 17, 2017, 2:35:02 AM10/17/17
to CodenameOne Discussions
Hi,
this happens if you include the native maps but don't actually use them in reachable code. Our optimizer strips away unused code and the native code that depends on that breaks.

candid...@gmail.com

unread,
Oct 17, 2017, 6:58:07 AM10/17/17
to CodenameOne Discussions
Thanks Shai

its working now, y was delete the lib/imp directory and te ant compile was recreate it clean.

Best Regards Kandy
Reply all
Reply to author
Forward
0 new messages