PhoneGap Build doesn't update the app - phonegap-build

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

Related

Xamarin.Forms - Release apk not installing

I am trying to install the application as a release APK in my android device but it is crashing when the installation of the application starts. When I run the app on release mode directly from the visual studio, it is showing no error and worked perfectly.
When the same signed APK file I am trying to install in the same or some other android device it just crashed when the installation of the application starts.
The linking property of the Android project is set to None (tried with all the three options), the minimum Android version is jelly bean and maximum version is Oreo 8.1.
I am using the latest Xamarin.Forms package and visual studio 2017. My Android SDK is updated. Please let me know what corrections do I need to make in order to successfully run the APK on all the devices.
I think these are possible things which can help you
Remove the old build from mobile and restart the mobile. while releasing, delete bin and obj folders, clean the solution and rebuild the solution after rebuilding deploy the solution
In android manifest file Set target android version to (api 27) oreo instead Use Compile using SDK.
Check the permission in release mode like (Internet, wifi and other permission which your app needs).

Xcode 10 breaks Ionic Cordova build

I have an Ionic 3 App using Enterprise Distribution for a client and of course Apple likes to change settings on their new iOS. Everything was working fine on iOS 11 and when a client-user upgraded to iOS 12 their app completely broke and could not re-download.
Steps I've Tried:
Check iOS Provisioning Profile Status
Rebuild App in Xcode 10.0
Archive and create new manifest and .ipa file for app
Rebuild app in npm using ionic cordova build ios --prod
Update any plugins that we're needing updates using npm outdated
Commit and Push to Production branch using ionic Deploy
Everything I've tried allowed me to build the app successfully and I was able to build the app locally on my device via Xcode, but as soon as I put the .ipa file on our server the app will not successfully download.
I have a feeling it may be a particular setting in Xcode, but I'm stuck right now. Any help would be appreciated.
Edit: After the update of Xcode 10, the app would no longer build successfully after running ionic cordova build ios
So the issue was never apparent, but I somehow fixed the issue by removing the other branch from git and Ionic deploy and kept the Production branch active on the latest commit. I also created the certificate profile on Ionic Deploy using the Enterprise Developer Certificate and Provisioning Profile and packaged my app. I used the .ipa file from Deploy and threw it on the server and it worked like a charm.
EDIT: I finally found documentation on why the app breaks. When Xcode 10 was released, Apache Cordova did not and still does not have support for iOS if the user has Xcode 10 downloaded to build in the terminal. Link provided here: Xcode 10 Support.
When building the app using ionic cordova build ios or ionic cordova run ios
You must run it like this: ionic cordova build ios -- --buildFlag="-UseModernBuildSystem=0". More information in the link provided.
EDIT: More possible answers can be found here. In some cases, users are experiencing similar yet different issues.

Loading/Building and Running existing Phonegap code in Xcode?

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

How to upgrade a cordova app and plugins

I have a Cordova (v5.2) app that I run on iOS (platform v3.9.1) and Android (platform v5.0). Is it best to upgrade Cordova from the command prompt, and then manually look for plugin updates, or should I look for plugin updates first then update Cordova? Also, I have recently upgraded from XCode 7.2 to XCode 8 and it is asking me to make changes to recommend project settings, this appears to break thinks. Should I allow XCode to make changes to the project, or should I upgrade Cordova first? I'm looking for a workflow and best way to manage these updates. Any advice is appreciated, thank you.
I would upgrade your Cordova platform first. The main version that I pay attention to is the cordova platform version. So in your case cordova-ios#3.9.1 and cordova-android#5.0.0. These packages are what control the cordova lib that gets injected into your native project. They also determine which version of Xcode you can use.
The cordova-cli pins certain platform versions by default when you run cordova platform add <platform_name>. I usually stick with the most stable release of cordova-cli for my needs and then add specific platforms (usually the latest) manually. cordova platform add ios#lateset.
Any partiular reason you're cordova#5.2, cordova-ios#3.9.1 , and cordova-android#5.0.0?
Infact you can also create a new project after cordova update and add the respective platforms and plugins so that the existing working project will be intact for reference.
If you wanna follow this approach then check out this following SO post. Even that post is related to porting cordova app from one PC to other, the steps still holds good even in this case. Hope it helps.
You should upgrade Cordova first (it's better if you install it globally with npm install -g cordova ).
After that, to update all of your plugins, you just have to remove them and readd them to your project, they will automatically be updated to be compatible with the last Cordova version.
cordova platform remove android
cordova platform add android#5.X.X
If you use the above method, be aware that any changes you made to the android platform folder will be lost (editing the contents of this folder is discouraged).
Alternatively, you may attempt to use the platform update script. For non-CLI projects, run:
bin/update path/to/project
For CLI projects:
Update the cordova CLI version. See The Command-Line Interface.
Run cordova platform update android#5.0.0 in your existing projects.

XCode 4.6 app won't install via ipa to device

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.

Resources