Hello,
i got an app with sencha touch 2 and phonegap 1.6.1.
I use the Facebook Plugin and Native Plugins.
1. Cause my Development and testing i got an Project with Xcode, with the complete Project from sencha.
All works fine with the iOS Simulator but i want to minify my Project.
The Problem is, if i want to build a package, i get an error with undefined type.
When i start the index.html in the browser an error occurs with the message: TypeError: 'undefined' is not a function (evaluating 'cordova.exec')
cdv-plugin-fb-connect.js
I know that the browser don't know the Cordova Functions but i want to build my app and want to avoid this.
can anyone help me with that?
2. I want to test my app on my real device with Xcode, but it didn't work with the same repo like the Simulator.
I don't need to make any configurations at the app.json or packager,json right?
So i dont understand why it still not work.
I get the Splashscreen and my testing alerts appears.
I got two alerts in sencha-touch.js at the start and the end. These two alerts appear.
My alert at the app.js at the start appears to, but not in my Application Launch function.
To be sure that the installing is right, i make a new app with Xcode, phone gap and sencha. Now with build app package and this works on my device. It works with build package and without any build.
Did anyone know this Problem and can me help out with that?
thx for your reply, this could solve my Problem.
I didnt know anything about the all command from creating.
The whole problem is thaf i use the Facebookplugin written with objective C, cause i dont want to build server side thinks for this connection.
If i search for the app id in my project, i added the plugin vaeiables that creates my error, not nice, but i will see what i get when creating a project with the all command.
my second question is solved with building the app with package and placed in xcode.
Hm, this doesn't help. The code in the if() just doesn't execute.
My first thought that i miss cordova.js file.
But I tried several ways to include cordova.js (via app.json and directly in index.html) without luck