hansemannn / titanium-googlemaps

🗺 Use the Google Maps with the Titanium SDK

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Build failed with 6.0.4 GA

quentinkb opened this issue · comments

I have this error when i try to build my project with 6.0.4 GA once i've included the module.

This is what i get building directly on my iPhone (5s)

[ERROR] :  ** BUILD FAILED **
[ERROR] :  The following build commands failed:
[ERROR] :  	Ld build/Intermediates/LPA.build/Debug-iphoneos/LPA.build/Objects-normal/armv7/LPA normal armv7
[ERROR] :  	Ld build/Intermediates/LPA.build/Debug-iphoneos/LPA.build/Objects-normal/arm64/LPA normal arm64
[ERROR] :  (2 failures)

This is what i get building on the simulator :

[ERROR] :  ** BUILD FAILED **
[ERROR] :  The following build commands failed:
[ERROR] :      Ld build/Products/Debug-iphonesimulator/LPA.app/LPA normal x86_64
[ERROR] :  (1 failure)

I have included the module (3.4.0) using appcelerator IDE.

Hmmm, I haven't stumbled on this... currently using Ti SDK 6.0.4.GA with ti.googlemaps 3.4.0

Have you built the module yourself or downloaded the one from Releases

Have you added run-on-mainthread to true tiapp.xml?

<ios>
        <run-on-mainthread>true</run-on-mainthread>
          ....

I tried on another computer on another project and got the same issue.. i'm using macOS Sierra 10.12.4

Did it work prior to 6.0.4.GA?

Have you checked if run-on-mainthread is set to true in tiapp.xml?

First time i try to use this module, so i can't tell. run-on-main-thread is well set to true

there you have it... make sure you add this line in tiapp.xml:

<ios>
        <!-- Add this Line Below -->
        <run-on-mainthread>true</run-on-mainthread>

        <enable-launch-screen-storyboard>false</enable-launch-screen-storyboard>
        <plist>
            <dict>

just edited my comment above, i currently have this line:
<property name="run-on-main-thread" type="bool">true</property>

i did so,

  <ios>
    	<run-on-mainthread>true</run-on-mainthread>
        <enable-launch-screen-storyboard>true</enable-launch-screen-storyboard>
        <use-app-thinning>true</use-app-thinning>

still get this error:

[ERROR] :  ** BUILD FAILED **
[ERROR] :  The following build commands failed:
[ERROR] :  	Ld build/Products/Debug-iphonesimulator/LPA.app/LPA normal x86_64
[ERROR] :  (1 failure)

btw, if i take a look into the directory : build/Products/Debug-iphonesimulator/LPA.app/
the "LPA" file does not exist

If i build with :
titanium build --platform ios --build-only
i get this error :

[ERROR] : Cannot find module '/Users/copark/Documents/Appcelerator_Studio_Workspace/copark/undefined'
[DEBUG]     at Function.Module._resolveFilename (module.js:325:15)
[DEBUG]     at Function.Module._load (module.js:276:25)
[DEBUG]     at Function.Module.runMain (module.js:441:10)
[DEBUG]     at startup (node.js:139:18)
[DEBUG]     at node.js:974:3
[ERROR] Alloy compiler failed

btw, if i try to build the project myself, this is the result:
appc run -p ios --build-only

[INFO]  Project directory: /Users/copark/Downloads/titanium-google-maps-master/ios
[INFO]  Module ID: ti.googlemaps
[INFO]  Creating universal library
[INFO]  Verifying universal library
[INFO]  Creating module zip
[INFO]  Writing module zip: /Users/copark/Downloads/titanium-google-maps-master/ios/ti.googlemaps-iphone-3.4.0.zip
2017-05-23T15:15:36.401Z | ERROR  | An uncaught exception was thrown!
undefined
2017-05-23T15:15:36.402Z | ERROR  | undefined
iMac-de-COPARK:ios copark$ 

Don't use <run-on-mainthread>true</run-on-mainthread> in <ios/>, use <property name="run-on-main-thread" type="bool">true</property> on the top-level. Please also try ti.googlemaps 3.3.x instead of 3.4.0, maybe there was a packaging error there.

Got the exact same issue with version 3.3.1 but compiling with 3.0.0

To fix this issue, Add the ti.googlemap module inside your project module folder. Not in the global. This is working fine.

Installing the module locally actually works. for version 3.4.0 !

Very very interesting. Let me try to reproduce with a global installation, I also usually test with local references.

Fixed it, PR coming asap.

Fix-version determined to 3.4.1, release today. Thanks guys!