How to build signed Phonegap2.9 project for iOS - iphone

This is a project which use phonegap 2.9 for iPhone app. Now I use phonegap's build tool to build an .app file, But this .app file is not signed. What I want to know is:
Can I use phonegap's build tool to build a signed .app file?
More about my project:
I have to use command line to build my project.
I have tried to use xcodebuild with param CODE_SIGN_IDENTITY to build it, but is failed with <Cordova/CDVViewController.h> file not found message.
I need you help. Thansk a lot!

To publish the in apple store at first you need to build an ipa file.
To build ipa file you need to archive the project.
Archive can be found here:
Project>Archive. (Be sure to choose iOS device in Run option).
To carry out all these task you will need provision file from your developer account.
For more detail you can go through these links:
How to get ipa file from Xcode to run an iPhone app in real device?
Deploy .ipa file in App store generated by Phonegap?
Publish Phonegap Build App at Apple's App Store - Experiences?

Related

How to build an iOS AdHoc app with flutter

I have an flutter app for ios and can build it for the app store using:
flutter build ios --release
But how can I build an Ad-Hoc app for ios?
Pre-requisite
Apple Developer Program membership ($99/year)
Distribution certificate added to your machine
In the Xcode project (Signing & Capabilities tab), select your team/ developer account which has the Apple Developer program membership.
1. Create an Archive (.xcarchive)
Technically you do not build an Ad Hoc app, you build a debug/release/profile app, which you then distribute via a distribution method, one option is Ad Hoc.
Using command line: You can run flutter build ipa to build the xcarchive. Then it should show a URL for your Runner.xcarchive at the output (double click that link), or
Using Xcode: Open the Xcode project, and in the menu bar, click Product > Archive. The organizer window will open once the archive is complete.
2. Create an .ipa
Now the Organizer window should be open. Press the Distribute App button: you should see multiple options. You can share the .ipa file with users, and they can install it onto their iPhone:
It's worth noting you can also create an .ipa using xcodebuild, but when you're first learning, it's nicer to use Xcode.
3. Install the .ipa on a device.
I wrote an answer about that: https://stackoverflow.com/a/68968301/7365866
Reminder
Just remember to do this:
Action Required: You must set a build name and number in the pubspec.yaml file
version field before submitting to the App Store.
You can use Code Magic's CLI tool to achieve that.
On their CLI (locally installed or on your CI server), there is an option to add
--type IOS_APP_ADHOC
See at the end of their signing documentation section for Specifying code signing configuration
You can use --export-method in the flutter build command, example:
flutter build ipa --release --export-method=ad-hoc
For Someone out there, who have trouble building ios application since they don't have an apple developer account, here's a method that i do and i use.
1st if you are an ios user you can connect your ios device into your mac and do a flutter run --release. you can also do it with just the simulator too and it does works the same.
Now, the ios app is created, using your 7 days free trial developers provisioning profile, what we need is to use some programs likie imazing,apple configurator or itunes, to get the ipa from inside the app.
Now you have build the ios app with a release version, and you can redistribute it with just a 7 days free trial version of yours.

Generate .ipa file in Xcode 7.2

I had created an iOS application successfully. Now I want to generate an executable file (.ipa).
I know the following steps:
Product
archive
save ipa file
But my archive is disabled. Any ideas?
1.You need to connect to a real device.
2.Build not for emulator, build for real device.
3.Now you can see "archive"

Xcode can't build ipa file for iOS app. Instead builds .pkg

I want to export my iOS app as an ipa file for Testflight. For some reason only on this project there is no option to build an .ipa file. Instead I can only export it as a Mac OS X application. It runs fine on the simulator and on the real device.
I already tried recreating the Ad-Hoc Provisioning profile, but it didn't change anything.
Would be great if someone knows how to fix that.
Thanks in advance!
I use TestFlight a lot and I do this:
Take the .app and put it in a folder called "Payload", compress that folder to a .zip file, then change the extension of the file from .zip to .ipa (you will have Payload.ipa), and your file is ready for TestFlight.
This is the way I do it and it works.
I finally found a solution for this problem: I used the "Validate Settings"-button underneath the build settings. The only property Xcode changed for me was the deployment target from iOS 4 to iOS 5.

Can't upload application from Application Loader

I finished work on an iPhone app in MonoDevelop and got a distribution provision from Apple. In the Release|iPhone build of MonoDevelop I set the 'Iphone App Bundle Signing' option to use the distribution user/provision and I built the app.
It created a .app in the bin/release folder. I tried uploading it using the application uploader but it wouldn't let me select the .app I had just built (it was greyed out)
Any ideas why that might happen?
I believe that the Application Loader only accepts zip files. Have you zipped up your app bundle?
Double Click 'Deliver your app', then you should be able to select the .ipa which is different than a template.
you have to create an .ipa file. take a look a this: MonoTouch Enterprise - Deployment

Finishing an app - getting the binary file?

I've finished developing my app and I want to release it. What is the binary file that apple is looking for in the submission for in iTunes connect?
Zip the app bundle, or better yet, use the Organizer to upload.
Check in the Build directory inside your project folder. There should be a folder in there called "Release". Inside that folder is YourApp.app. Zip it up and send it in.
You need to visit apple provisioning portal to generate a distribution certificate for your app, then download it to your machine and in the end you have to build it up it with this certificate in xCode.
There some tutorials on the provisioning page. So I hope you can make it.
https://developer.apple.com/iphone/manage/overview/index.action