We've created a small project in phonegap on the PC in a www folder. I have moved the files on to the Mac but I can't figure out how to load it into xcode to edit the HTML further and to build/run it in the emulator or on my device.
I've never used xcode before and don't really understand how projects fit and work. I've tried to follow the Adobe Phonegap instructions I can't work out how to open an existing www phongap folder and there's no 'new cordova project' in xocde when creating a project as it shows in the adobe instructions, despite installing node.js, cordova and phonegap as instructed in various instructions I've tried?
I have phongap installed and can create a helloworld app in the phonegap Gui but again, can't figure out how to load it into xcode to build/run? I'm obviously not understanding the how xcode fits in with phonegap etc. and once this falls in to place I'm sure I'll be cooking on gas. Any help would be appreciated :) Thanks :)
cordova platform add ios
and then
cordova build ios
Then you will find the Xcode project folder in your YourApp/platforms/ios/YourApp.xcodeproj within your project. Just import it with XCode.
But Cordova will automatically build your app and emulate it by just using:
cordova run ios
Related
I use Android Studio on my MacOS M1.
My project is finished and everything works, either with Android simulators or iOS simulators via Xcode.
I would now like to publish my project on App Store.
I already have my subscription on App Store Connect, and I have already prepared my program submission with screenshots, title and description.
What I don't understand is how to upload my build to the App Store? How do I create my Build?
Do I have to import my project to XCode? If yes, how ?
I saw that in the Build section, there are 3 tools, the first one is called “Upload your app binary with Xcode”, how to go about it?
I'm lost, please help me.
CB
i need some information. I thought i can only run the app if i install an mac, xcode on windows so i can run an xcode project and install the pod etc.
but now i tested my app which i start to develop without adding/editing the pod's file and it works on a apple phone as well.
so i'm little bit confused, do I have to install a mac on a windows system or not?
because i thought it's important to create an xcode project and install pod to run it on a iOS
thanks for all replies.
You are probably using expo, so yeah, you can now launch your app on an iPhone.
You can read more about expo here.
You will be able to build for ios and android without installing xCode or android studio.
There's some limitations to expo, but you should be able to do a lots without ejecting your project.
PhoneGap Build shows successful build and log for Android, shows updated version on the PhoneGap Build web page, but when I install Android shows old version and the APK file is also old. I know for sure because I just put 2Mb of dummy images and the sise of the APK hasn't changed, so the problem is with build
Edit: it was a 1-day glitch, it works OK now
we see this problem every now and then. Our solution to it is to remove and ad back in the affected platform. Assuming you are also using the latest cordova tools do the following:
cordova platform remove android
cordova platform add android
I have an app built in XCode 4.6 and I'm trying to install it onto an iPad with iOS 5.1.
In the target summary I have set the deployment target to 5.1 and in the build settings the base SDK is set to latest (6.1). From what I have read this should work but when I install the app via the IPA file and iTunes the app starts and then flashes off.
It runs fine if I build and install through Xcode.
Is there something I'm missing here? Am I incorrect in thinking it will work if the base SDK is iOS 6.1 but the deployment target is 5.1?
I did double check the profile stored against the release configuration and found it was incorrect. So Kevin was right. Thank you.
It had been my understanding up til now that a profile error would prevent installation altogether. I know better now.
I used to develop PhoneGap Apps by using 1.x PhoneGap library or Cordova library. After that, I use Cordova 2.x library, and I got confused.
I push my sources to Github and let my friends fork it. We don't know how to deploy the development environment on another Macbook even if that Macbook has the Cordova 2.x library.
First, we found that the project did not have the Cordova lib. So, we Added Cordova 2.x library into the project.But Xcode gave us an error.
If I built Cordova Lib Xcode said :
File
/Users/[MYUSERNAME]/Library/Developer/Xcode/DerivedData/[MYAPPNAME]-gfayprtpflnyaqcwfmepqwlyjglq/Build/Products/Debug-iphonesimulator/libCordova.a
depends on itself. This target might include its own product. build
cordova 2.x Lib
If I build MYAPPNAME Xcode said :
Unknow type name "CDVViewController"
in phonegap folder you find something called update script run it and give it your project adress it should do the job(update references and more) you could find more in phonegap website
Finally I solve my problem by reading this article.
And follow the steps like the author's saying ...
Here is the link : http://zsprawl.com/iOS/2012/10/installing-cordovaphonegap-2-1-for-ios/