Closed bFlood closed 8 years ago
Strange. Did you have a look at the config.xml of the maps example project? It also uses nightly and builds just fine for iOS: https://github.com/eclipsesource/tabris-maps-example/
I have more plugins defined but the tabris-maps plugin section is identical. I'll run it again and see what happens
same error, full build log here: https://gist.github.com/bFlood/6d16ad9329a36b8213d3
Does your project has spaces in it's name? Could send Xcode project file (projectname.xcodeproj - it may be appear as directory on non-OSX OSes) for me to investigate? It would be great if you could also attach bridging header (file has "-Bridging-Header.h" suffix in it's name).
I don't have an xcodeproj file, I'm only using the tabris build server
my project name did have a space but when I removed it the same errors occured
thanks!
when I fork the tabris-maps-example, it compiles just fine. I did notice that it's config.xml is in the root folder whereas mine is in a "cordova" folder like in the tabris getting started app: https://github.com/eclipsesource/tabris-js-getting-started
maybe https://github.com/eclipsesource/tabris-maps/blob/master/scripts/setup-bridging-header.js is getting confused?
You should change your project so it would like the tabris-maps-example projects structure.
is that the recommended project structure for tabris.js apps when using the tabris build service? why is the getting-started (and other tabris exmaples) different? fwiw, I think I started with that folder structure originally and then had to switch to one with an isolated "cordova" folder
I'll give it try for this issue and let you know but it would be very helpful to have a single, known folder structure for all tabris apps (built locally or via the build service)
ok, I moved around the project folder to match tabris-maps-example and I still get the exact same error on the build service. any thoughts? I was hoping 1.5 would solve all the maps issues but now I can't even get them to work on android either https://github.com/eclipsesource/tabris-js/issues/707
I have no idea what changed but I just tried compiling again and it works!
thanks tabris
the change of cordova versions on the build server have broken the hook scripts for iOS
@bFlood What's in your script? Mine is still working.
the scripts are running, its just code for getting the cordova project folder, platform parser and possibly other stuff is broken with the new cordova version. also, I'm using the "nightly" build server
script is similar to this one: https://github.com/eclipsesource/tabris-maps/blob/master/scripts/custom-widget.js
after changing the code and getting the requireCordovaModule calls to work, I'm now getting this error:
Failed to install 'com.spatialdatalogic.tabris.gmaps':TypeError: platforms[platform].parser is not a function
at getProjectFile (/Users/travis/build/eclipsesource/tabris-js-build-template/build/plugins/com.spatialdatalogic.tabris.gmaps/scripts/custom-widget.js:28:20)
at updateIOSAppDelegate (/Users/travis/build/eclipsesource/tabris-js-build-template/build/plugins/com.spatialdatalogic.tabris.gmaps/scripts/custom-widget.js:48:27)
at module.exports (/Users/travis/build/eclipsesource/tabris-js-build-template/build/plugins/com.spatialdatalogic.tabris.gmaps/scripts/custom-widget.js:75:5)
at runScriptViaModuleLoader (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/hooks/HooksRunner.js:167:18)
at runScript (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/hooks/HooksRunner.js:145:16)
at /usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/hooks/HooksRunner.js:130:20
at _fulfilled (/usr/local/lib/node_modules/cordova/node_modules/q/q.js:787:54)
at self.promiseDispatch.done (/usr/local/lib/node_modules/cordova/node_modules/q/q.js:816:30)
at Promise.promise.promiseDispatch (/usr/local/lib/node_modules/cordova/node_modules/q/q.js:749:13)
at /usr/local/lib/node_modules/cordova/node_modules/q/q.js:810:14
We'll fix them as soon as we have stabilized situation with Cordova 6.
is there a timeline? as of right now we cannot build for iOS?
@bFlood I have updated Cordova hooks and successfully built tabris-maps-example with our build service using nightly. Please give it a try.
thank you, works for me as well!
fyi - this issue is still present https://github.com/eclipsesource/tabris-js/issues/768
I'm getting this error when building the tabrismaps plugin on iOS, I'm using the nightly build version since I presume tabrismaps on iOS requires tabris1.5. I must be missing something easy
any help would be great.
on a related note, how would you reference an external cocoapod in a custom plugin (ex: the Google Maps for iOS cocoapod: https://cocoapods.org/pods/GoogleMaps )
thanks!