[JBoss JIRA] (JBIDE-21780) Cordova projects exported as native projects fails to run in iOS simulator under XCode
by Gorkem Ercan (JIRA)
[ https://issues.jboss.org/browse/JBIDE-21780?page=com.atlassian.jira.plugi... ]
Gorkem Ercan resolved JBIDE-21780.
----------------------------------
Resolution: Done
Moved to a new Thym. The native project export is no longer needed. Projects now include a platforms folder which includes the platform version of the application.
> Cordova projects exported as native projects fails to run in iOS simulator under XCode
> --------------------------------------------------------------------------------------
>
> Key: JBIDE-21780
> URL: https://issues.jboss.org/browse/JBIDE-21780
> Project: Tools (JBoss Tools)
> Issue Type: Bug
> Components: aerogear-hybrid
> Affects Versions: 4.3.1.Beta2
> Environment: Mac OS X 10.11.3 (El Capitan);
> XCode 7.2.1;
> JBDS 9.1.0 Beta2
> iPhone 6 Simulator (iOS 9.2) among others
> Reporter: Vineet Reynolds
> Assignee: Gorkem Ercan
> Fix For: 4.3.1.CR1
>
>
> Cordova projects with Cordova plugins when exported as native projects appear to have incorrect locations set for config.xml.
> A new config.xml appears to be created with default content and none of the Cordova plugins in the configuration, which is incorrect. In addition, the original config.xml file is created/copied into the www/ directory, which is ignored by the build and/or runtime.
> When the native project is run in the iOS simulator, it shows errors/warnings that indicate failure in initialising Cordova. Plugins like the Device plugin are not loaded since they cannot be found in the config.xml (assuming the newly created config is overridding the original config), resulting in a failed application start.
> The output window shows the following message:
> {{ERROR: Plugin 'Device' not found, or is not a CDVPlugin. Check your plugin mapping in config.xml.}}
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
10 years
[JBoss JIRA] (JBIDE-21781) Running Cordova projects with Cordova plugins fails on iOS simulators
by Gorkem Ercan (JIRA)
[ https://issues.jboss.org/browse/JBIDE-21781?page=com.atlassian.jira.plugi... ]
Gorkem Ercan resolved JBIDE-21781.
----------------------------------
Resolution: Done
updated with latest Thym which uses Cordova CLI instead of own build system. We no longer should face this kind of problems.
> Running Cordova projects with Cordova plugins fails on iOS simulators
> ---------------------------------------------------------------------
>
> Key: JBIDE-21781
> URL: https://issues.jboss.org/browse/JBIDE-21781
> Project: Tools (JBoss Tools)
> Issue Type: Bug
> Components: aerogear-hybrid
> Affects Versions: 4.3.1.Beta2
> Environment: Mac OS X 10.11.3 (El Capitan);
> XCode 7.2.1;
> JBDS 9.1.0 Beta2
> iPhone 6 Simulator (iOS 9.2) among others
> Reporter: Vineet Reynolds
> Assignee: Gorkem Ercan
> Priority: Blocker
> Fix For: 4.3.1.CR1
>
>
> Cordova projects with Cordova plugins fail to run correctly when started with the iOS simulator through JBDS.
> This appears to be related to JBIDE-21780 where a default config.xml file is created on the fly in the exported XCode project before the project is built and deployed on the simulator.
> Attaching a JavaScript debugger using Safari indicates that Cordova was not initialized successfully. The following messages are reported:
> {{deviceready has not fired after 5 seconds.}}
> {{Channel not fired: onCordovaInfoReady}}
> which indicates that Cordova failed to initialise.
> As indicated previously, this appears to be related to JBIDE-21780. The config.xml file should be in the location (of the XCode project) as indicated in https://github.com/VineetReynolds/cordova-test/tree/master/demo-ios-worki... instead of https://github.com/VineetReynolds/cordova-test/tree/master/demo-ios-not-w...
> In the working version, config.xml is at {{demo-ios-working/demo/ios/demo/config.xml}} only whereas in the non-working one, it is at {{demo-ios-not-working/demo/ios/demo/config.xml}} (notice lack of Cordova plugin info) and {{demo-ios-not-working/demo/ios/www/config.xml}}.
> A workaround could be obtained by exporting the project and modifying the config.xml, but that basically renders the JBDS tooling moot.
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
10 years