IOS Deployment with Ionic - ios

Is it possible to deploy an ionic app to your ios device without publishing it on the app store? I do have a Mac and a developers license, the app I want to use is for private use (for about 5 users).

Yes, indeed you can.
You first have to build your project for ios:
ionic build ios
Then you have to open up (with Xcode) the .xproj project that was generated by ionic build ios command (you'll see the exact location in the command's output).
Now you have to connect your iPhone to you Mac computer and you'll be able to choose your iPhone as a "deployment" device.
Click run in Xcode and after the Xcode finishes guiding you through creating a provisioning profile you'll have the app on your phone.
For more info take a look at https://developer.apple.com/library/ios/documentation/IDEs/Conceptual/AppDistributionGuide/LaunchingYourApponDevices/LaunchingYourApponDevices.html

Of course, you just need Xcode to generate the ipa so you can install it anywhere.
Check this guide: http://cordova.apache.org/docs/en/latest/guide/platforms/ios/index.html As ionic is essentially cordova the steps are similar.

Steps to upload ipa to App Store and Device (ionic App)
Step 1
1. Import Project to Mac Laptop
2. Create a new Project in Mac via terminal and import all SRC Folder from old project to new Project.
3. Open the New Project.
4. Copy the Dependency from old Projects from Dependencies and paste in New Project in Dependencies
5. Don’t remove old Dependency of new Project just install new one
6. Fire command Npm install once dependency and Src Folder is copied to new Project
7. Go to config.xml change widget id, version, Description, author email, href.
8. Change Version in package-lock.json
9. Npm install
10. Don’t Forget to Save All Files.
Step 2
1. Ionic serve -l
If you have installed Native Plugins (I.e. camera, network, base 64 etc.), Reinstall that All Native Plugins.
2. Verify that app is running in browser
3. Ionic cordova build ios
Step 3
1. Go to developer.apple.com
2. Click on Identifier-> App Id.
3. Register App Id Name and Bundle Id
4. Click on Continue and Register
5. Go to Provisional Profile
6. Click + Sign
7. Click on Development
8. Select Ios App Development
9. Select IPhone Listed
10. Generate Profile Name by Giving Name
11. Continue and Profile will be Ready
12. Click on Done.
Step 4
1. Go to Project-> ios-> projectName.xcodeproj
2. Xcode will be opened when you open file projectName.xcodeproj
3. Click on Project and Automatic Signing
4. Select your Device and Click on Run Button
5. Change Bundle Name and Bundle Identifier Name in INFO
6. File -> Project Setting ->Shared Project Setting -> Build Setting ->Select Legacy Build System instead of Default (Verify Once)
7. Click on Run Button Your App will be Deployed in iPhone

Related

React Native app, does not show in iPhone setting app

I am new to react native, When I run the iOS project from Xcode, it is installed successfully.
However, I am not able to see my app in the setting app of the iPhone.
Xcode Version - 11.6
iphone version - 13.7
Although I am getting following error when checked the devices in organizer.
there is an issue for that but for workaround it just add settings bundle to your ios project.
Adding the Settings Bundle
Open your workspace inner ios folder with xcode
To add a Settings bundle to your Xcode project:
Choose File > New > New File.
Under iOS, choose Resource, and then select the Settings Bundle template.
Name the file Settings.bundle.

Xcode 11 successful archives will not show in organizer,

I have a problem when it comes to uploading my app to the Apple Store, this is the first time I work with IOS. The Build is working correctly, however, when I perform the project archive (which by the way runs without errors) it does not appear on the Organizer screen so that I can upload the app to the store. I have already created the distribution certificate and the production profile. I already removed the project and added it again, installed an older version of XCODE, tested it on another project but always the same thing.
I am using Quasar / Cordova, version of Xcode 11.3 MAC version Catalina 10.15. In some places I found some people advising to disable the "skip install" property in the build settings, but it also didn't work. Could they help?
I faced same issue after OSX update to 10.15.5
Follow the steps below:
Delete the sub-folders in Archives.
Delete DerivedData folder.
Please perform this steps :
Xcode -> Build Settings -> Installation Directory -> Set value $(LOCAL_APPS_DIR) or /Applicatins
OR
You can open organizer manually also. After successfully archive please perform this steps :
Xcode -> Window -> Organizer

How to build .ipa and install it on iphone form xcode?

I have installed MacOS 10.12 Using VMware and successfully implemented Ionic 2 app for IOS. I have also generated an .ipa file using the following method:
Clean your project.
Build your project.
Go to products menu -> select build for -> select Profiling.
In project navigator, find your .app product.
Right click on it and click show in finder.
There you will find folder named "Release-iphoneos", in
this folder you will find your .app extension file.
Create a
folder named "Payload", copy that .app file in this folder.
Archive your folder.
After archive, rename your folder to name of
your app and change its extension from ".zip" to ".ipa"
Your ipa is ready for sharing.
From the above technique I got my .ipa file. Then, to install this app on iPhone i am using www.diawi.com . Now the problem is, when i am installing app from my safari browser on iphone download issue is showing. My internet connection is all good. I can also see the installation process on my iphone but app is not installing.
Note: I don't have Apple developer program. I need to build and install this app for testing in different iPhones.
Please suggest any other way to install my app on iPhone or another technique to build and share the app. My configuration is as follows:
Mac OS - 10.12 Sierra(VM-ware machine), Xcode- 8.3.3.
I tried so many articles but not sure where am i getting wrong. please suggest.
For that you will need to be enrolled with the Apple developer program (99$ a year). There is no other way.
Or you need to install it manually by plugging the iPhone in the computer and running the code in XCode (keep in mind that the default certificate will let your app run for 7 days then it will get expired)
to make .ipa file Archive your project and export your binary as developent or deployment.
You can install your .ipa file manually.Connect your iPhone with your computer and drag .ipa file in your iPhone application folder.

How to get an iOS app build for appium testing?

I wanted to setup iOS testing on simulator on my MacBook-pro. Im using appium 1.6 and Xcode 8 and iOS 10.1 as simulator OS. I ran my appium server and set the desired capabilities and used an .ipa from the app store and it crashes on launch while doing an inspect on appium. Is it happening because i don't have a app signed for development? what are the requirements for the app to be tested for using? Do i need signed apps to be used for testing on simulator too ?
You can create a .app file useing the belowing instruction:
1- Go to:
xcode > File > New Project > (select ios at top bar) select Tabbed Application > click Next > give project name and select swift as language and complete process.
2- Open the project and run it. After running the app in the simulator, you will find the project .app file in the product folder (expand your project in xcode > product.
you can use this .app file for your appium test.
3- You can also get a lot of free .xcode project on the web. download this project, open the .xcodeproj or .xcworkspace file in xcode and run it. you will find the .app file in the product folder
if you want to run your ios app in the simulator, you need a .app file, not .ipa file. The .ipa file runs on the device. Try to generate a .app file for simulator.
Yes, you need apps to be signed with a developer provisiioning profile. You can use the iresign to do it. you should input your ipa file developer provisioning file(contact your dev) and click resign. It will output the resigned app
The same dev provisioning file, dev certificate should be installed in your mac from where you run your scripts.
Note: you cannot run .ipa on simulators. you need .app version of the app , for which you need to contact the developer too

ApplicationVerificationFailed from Nativescript CLI

I am using the latest version (2.0) of the Nativescript CLI. I recently updated by iPad to iOS 9.3 from iOS 7. Prior to this upgrade, I was able to run Nativescript apps on my device using "tns run ios". Since the upgrade, I get the following error:
Error: ApplicationVerificationFailed
ErrorDescription: The bundle being installed with bundle ID org.nativescript.bluetoothdemo2 is authorized by a free provisioning profile, but apps validated by those are not allowed to be installed from this source.
I have attempted to change the bundle ID (hence the 2) and generate new provisioning profiles to no avail. I have opened the project in xCode and the "Fix It" button is not available. The project does run in xCode.
This is how I solved the same problem.
1) Opened up XCode project that Nativescript generated, tried to run it, but it failed with message that apphas to be verified on the phone itself.
2) Opened up phone General settings > Profiles and Devices Management > Developer App.
3) Verified the app.
4) Built and run app via "tns run ios --device 1" normally without any problems.
Hope it helps :)
I would recommend you try the following:
1) Remove the platform/ios by running tns platform remove ios
2) Make sure your package.json contains the correct bundleID (this will be passed to your xcode project when you build).
3) Make sure you use the same BundleID from your Apple dev-certificates.
4) Add the platform/ios by running tns platform add ios
5) Prepare & Build: tns prepare ios & tns build ios
6) Go to your .../platforms/ios folder and open the .xcodeproj or .xcworkspace
7) Go to "General" tab of you main app target and under "Identity" group make sure you have the correct BundleID and the correct Team (your Apple dev account).
8) Go to Build Settings tab and under Code Signing group the Code Signing Identity key is set to iOS Developer (your dev Certificate), and that the Provisioning Profile is set to Automatic (when publishing it will automatically choose the correct profile).
Now you can just close XCode and run the app via CLI.

Resources