PhoneGap icons not automatically set on command line build for iOS - ios

I'm working on a PhoneGap project and testing a lot with the online build tool. Now i try to build the project from the command line with the following command:
phonegap build ios
My project is setup for PhoneGap 2.9.0 and in the online build tool everything works fine. But when i try to generate a iOS project with the command line tools, the icons are not setup correctly.
PhoneGap creates the iOS project with a standard Resources folder with default icons and splash screens. In my PhoneGap project i also have icons and splash screens with a reference from the config.xml. The iOS project does take some of the icon references i created but some of them it uses the default icons from the resources folder...
Has someone else has this problem with the command line build?

Related

How to submit, a VUE / Cordova Mobile application to Apple Store?

Under
Apple Store Connect
It states to:
Submit your builds using Xcode or Application Loader.
But there are no instructions, into how to make the build from VUE/CORDOVA into Xcode
How do you do this?
Have tried opening the project within XCODE, have tried creating a new schema, open the build/www folder from XCODE and still same problem.
done the following
Deploying
Deploy for android
yarn cordova-build-android
Deploy for iOS
yarn cordova-build-ios
Error opening the folder with XCODE
You open the XCODE project actually by opening the platforms/ios/ or simply the .codeproj within the same directory

I can’t get my iOS project to build my changes

I'm new to the iOS side of things and I’m having a huge issue. None of my changes I am making to my views are being built when I build iOS. I run
sudo cordova build ios
Then I open Xcode and “sign” it. I then run from Xcode to my test device. But no changes are made. Even when I remove the iOS platform, add it back, rebuild iOS, run from Xcode, my changes still have not taken effect in the build. Am I missing something?
After you update your view, the process is:
1. build the components and pages and copy the result into www dir.
2. copy the contents in www into ios project, with ionic prepare command.
3. build your ios project.
With the latest version of ionic, it will be done one one command ionic cordova build ios, but if you use some old version of ionic, maybe you need to run:
ionic build
ionic cordova build ios

Xcode does not include changes in rebuild of cordova app

I am experiencing the problem that Xcode does not incorporate any changes made to HTML/CSS/JS files when rebuilding the app for iOS
Right now I am deleting the whole platforms/ios folder and rerunning cordova add platform ios every time. This can't be the intended way of testing cordova apps. What is a good workflow for testing cordova apps on an iOS device?
Well, the recommended workflow for testing Cordova apps is not using Xcode at all, just use the Cordova CLI to run your apps. But the truth is that running from the CLI might be slower than using Xcode.
What you need to copy the changes from www to the Xcode project is to run cordova prepare ios before running from Xcode. You can do it manually or create a Xcode build script to run it for you.
To add a build script, on Xcode select your project target, go to Build Phases, click the + button and select New Build Script phase.
You can try to just add cordova prepare ios and this might work.
If you get a cordova command not found, then you also need to add Cordova path to your PATH. To do it, open a terminal and type which cordova, you'll get the Cordova path, something like /Users/davidnathan/.nvm/versions/node/v4.4.7/bin/cordova.
Now add that path without the cordova part to your build script before the cordova prepare ios, something like
PATH=/Users/davidnathan/.nvm/versions/node/v4.4.7/bin/:$PATH && cordova prepare ios
Move the build script to be over the existing "Copy www directory"
Try ionic cordova prepare ios.

How to edit a Phonegap/Cordova-project in XCode?

I built a Phonegap/Cordova iOS-app using the command line. I can run it with the CLI.
After that I'm using XCode to compile and run the project that was created in 'platforms/ios' on the iOS simulator. This works too.
Now I would like to use XCode to make changes to the app. XCode does display a www-folder and config.xml but these are the top ones in the project folder , not in platforms/ios.
So if I change the files that are displayed in XCode, no changes appear when I run the project.
So, how can you edit a files of a Phonegap/Cordova project and run it with XCode ? (and still being able to use the CLI, would be nice as well).
You always need to modify the project_folder/www files. You can edit this files using Xcode, notepad++ or even with a simple notepad. Use what ever you like.
Then run the command using CLI
cordova build ios
Your project is now completely built. You can see the changes you made inside platform/ios/.../www files too. Now you can run the project using CLI or Xcode as wish. To run in CLI
cordova run ios
Or to emulate in emulator
cordova emulate ios
You are doing it right, you have to edit the root www folder.
Your problem is you have to do a cordova prepare ios to copy the changes from the root www folder to the platform/ios/www folder
You can do it from the cordova CLI or you can add a build script to you project (on build phases -> new Run Script phase) that runs the cordova prepare ios every time you run the project from xcode
The code you need on the scrip is
PATH=${PATH}:/usr/local/lib/node_modules/cordova/bin/:/usr/local/bin
cordova prepare ios
Put it the first one
If you really want to edit the patform/ios/www folder, on xcode you will see a staging folder, there you have the www folder and the changes you do there are applied to the project, but when you do a cordova prepare ios that files will be replaced by the ones on the root www folder and you will lose all your work, so don't do that

Cordova iOS Build in Netbeans

I am building a cordova app using Netbeans 8.0. My problem is that although it builds on Xcode, I am getting the following error in Netbeans.
update-ios:
cordova prepare ios
build-ios-xcodebuild:
xcodebuild: error: SDK "iphoneos6.0" cannot be located.
/Users/abc123/nbproject/build.xml:178: exec returned: 64
BUILD FAILED (total time: 2 minutes 0 seconds)
Xcode is at version 5.1. I assume I need to add the SDK path to a file somewhere, but I don't know where that is nor where to put it.
I can still use Xcode if I have to but it is quite cumbersome when the Android version still uses Netbeans. The provisioning profile is set correctly.
In netbeans goto configure cordova. You can find a link by clicking on the build device icon. from the popup select mobile platform setup. put the correct path there.
I was in the same situation. Using Netbeans 8.0.2, Xcode 6.1.1 e IOS Simulator 8.1 (550.3)
The tip, in the commentaries, from tl8, is great. Go to the Project Files Tab (Cmd+2 or on the menu bar, Windows -> Files).
On the files:
YourProject/nbproject/ios.properties
YourProject/nbproject/ios_1.properties
Inside those files you can make the changes. The first concerns to the simulator version. The second is about the ios version on the device.

Resources