Closed jcppman closed 10 years ago
As far as I know, the phonegap build
command does create a new Xcode project every time. So all Plugins are removed and the WikitudePlugin.js
file is not added correctly anymore.
My Workflow is as following:
build
ONLY ONCE
build
one more, install all plugins from scratch (you might need to remove them before)Well, alright... Since I have to test the app in android and ios, I have to build it very often or I have to apply my changes on both sides. Looks like a choice, reinstall plugins or repeat yourself!
The problem is solved! The phonegap build
will not remove wikitude plugin, so it is not the true reason.
First I tried to clean the project in Xcode, but the problem is still there. Then I remove the platforms
directory and rebuild it by phonegap build ios
and phonegap build android
, and everything is fine! Now I can do phonegap build
as many times as I want and wikitude plugin still work!
First, my envs:
v 3.3.0-0.19.6
v 3.2.1
And the following things happened:
/platforms/ios/PluginSamples.xcodeproj
via Xcode and build it, run it on my ios device, IT WORKS!phonegap build
in the root directory of this sample, it throws:Then I execute:
phonegap platform update ios
, thenphonegap platform build ios
would be done without any error. But when I install this new build into my ios device, I cannot enter any ARWorld, when I click the link (e.g: 1.1 IMAGE ON TARGET), nothing happened!I'm facing the deadline of a demo app, please help me! BTW: The same thing happened on android either.