Swift app cant connect to internet when distributed via .ipa - ios

I am developing an app, when the app is installed on my device it works fine, never had any connectivity issues. I added a UDID of a beta tester, updated the provisioning profile and sent him the a link to download the .ipa via manifest etc...
If I download the app via the AWS S3 server its being hosted on, it works fine. However, if my beta tester downloads the app it installs and loads, but wont connect to the internet. Note: Under settings > general there isn't an option for device management to allow the app on EITHER of our devices, because this isn't an enterprise app.
I have researched and tried to duplicate the issue to no end. We both have the same model phone (X) and same version of iOS.
Update: tried an Ad-Hoc provisioning profile with no changes to results

Related

Install iOS apps using adhoc without plugging the iOS Device on Mac computers

I am currently working on a private iOS app, and was asked to distribute it to only a handful of people without publishing to app store. I know about ad hoc and already created provisioning profile and all the requirement, archived and sent to the iOS device. My first try using ad hoc, sent to iPhone using airdrop, the app automatically installed on the device, all worked great, but all of that while plugging the iPhone in to mac computer that I used for developing the app.
My question is can we do that without plugging it in? I recreates the step with the same phone and on another phone without plugging it in and the apps can't be installed. Or is there difference in steps when plugged in or not.
In order to install an ad-hoc package to a remote device, you will need to put the IPA file on a web server and also upload the Manifest file.
However, If you don't have a handy server, there are many free services that you can use for that. To mention a few: TestFairy, Diawi.

Ionic 3 - Can't install production app on iOS

I'm building my app for iOS using ionic package.
https://docs.ionic.io/services/package/
I created certificates for both development and production, including push.
https://docs.ionic.io/services/profiles/
development - built successfully using ionic package, installed on iOS with no problem.
production - built successfully using ionic package, when I try installing it on iOS it starts installing the app normally, then when almost finished the app disappears and it ends up not being installed, no errors appear.
Why does it happen?
In order to test the production .ipa on my device, I'm installing it via the iTunes software. (I'm not publishing it in the App Store yet)
The same goes for the development .ipa, though for this one it's a given.
I found this old issue which suggests it might be due to bundles ids that don't match:
In-House App Disappears After Install
The widget id in my app's config.xml is identical to the App ID on Apple Developer.
Are there more places that are supposed to be identical which I'm not aware of? Perhaps info I'm inputting when creating the certificates?
My final goal is to publish this app in the App Store, it's not an In-House app - I'm stating this to avoid confusions.
I have faced the same issue when i was building my iOS apps , after a couple of research i came with this fact :
When you prepared the Production build (Store App ) it will not be able to install in the development devices . if you need to test that production app in your development device you need to build the app with ADHoc Provisioning Profile . then only it is able to allow you to install in the Development devices.
AdHOC provision profile is a distribution provisioning profile that allows your app to be installed on designated devices and to use app services without the assistance of Xcode. It’s one of the two types of distribution provisioning profiles that you can create for apps. (You use the other type of distribution provisioning profile later to submit your app to the store.) An ad hoc provisioning profile ensures that test versions of your app aren’t copied and distributed without your knowledge.
When you’re ready to distribute your app to testers, you create an ad hoc provisioning profile specifying an App ID that matches one or more of your apps, a set of test devices, and a single distribution certificate.
The App Store version app is, as its name implies, for use only when distributing via the App Store. It exists for signing your app for distribution via the App Store and can't be used for any other purpose. Unless you install an app that has been signed by it via the App Store it will obviously fail.
If you want to distribute an app for internal use to a few devices and for a relatively short period, you should use an Ad Hoc profile (which i explained in above ); if to a lot if users for an extended period, you need to register as a corporate developer and follow a different process.
For More Details regarding Adhoc refer the following link:
https://developer.apple.com/library/content/documentation/IDEs/Conceptual/AppDistributionGuide/TestingYouriOSApp/TestingYouriOSApp.html
You can't just directly install production build onto your test device, its against apple's policy.
So in order to do that you can export an Ad-hoc build and then you can install in your device, provided that device is already included inside your provisioning profile.
Ad-hoc builds works same as production builds, only difference is you can only install on those devices which are included in your provisioning profile for that app.
It is not possible to directly install Production iOS App on the mobile device. This can only be done via TestFlight. Step by step tutorial below.
Prerequisites
You have your Mobile App Prod build ready and signed
You have iOS mobile test device with TestFligh app on it
Step by step
On MAC open XCode -> Open DEveloper Tool -> Application Loader
Click 'Choose' file to pick up your build file from local machine and continue to upload
Once app is uploaded it will be visible from iTunes Connect console (wait until Processing is finished before submitting to TestFlight)
Once that's done, open TestFlight App on the iOS mobile device and download your new app.

Codename one IOS App Store

We have successfully tested our IOS app on IPAD with Codename one Build IOS debug feature. It is working fine out here. But When we build for the App Store, The app downloads in the device and don't get installed. We have already generated the certificates for production and development, yet we didn't found any perfect solution
App store build can't work on a device until it's signed by Apple. It's meant for publishing in the store. The only app that could work on your device without passing through App store is a debug app.
When your app is fully ready, you can submit it by going to itunes connect -> My Apps and click on the plus sign to create a new app. Follow the process and submit all the requirements.
To upload the App store IPA file, open Application Loader on your Mac, login and Upload your file. It will appear on your iTunes connect within few minutes.
It takes approximately 7 working days (9 days) for Apple to review and approve or reject your app, so relax and be patient.

How can I get a Phonegap app to install at the same time as an App store app

I am using PhoneGap (Build) to create an iOS and Android app. I have 2 versions of the app on PhoneGap, one is setup with an Apple and a Google certificate, which I use to get the ipa / apk files to send to the App & Play stores. The other is used as a staging app, and our test devices install this app from directly from PhoneGap.
I'm having an issue getting both versions of the app to install on our test Apple devices at the same time. If the App Store app is installed, the PhoneGap staging app removes it when it is installed, and vice versa.
In config.xml there are 2 versions with a different widget id. So they should appear to the device as different apps:
staging.myappsname.app
com.myappsname.app
This setup works on Android devices, how can I get iOS to see them as separate apps?
I'd forgotten about this question.
On iOS, the apps are differentiated by the signing certificate. So the staging app needs to have a separate provisioning file and key from Apple Developer Center.
The App Store provisioning file & key should be generated from a Distribution Certificate.
The "staging app" provisioning file & key should be generated from a Development certificate.

Need to share iOS App to 15 other testers using XCode

So I just finished developing my first App for iPad and I have to send my App now to 15 other remote testers to test the App.
I am told that I have to send all those testers an IPA file which they can install in their iPad through iTunes. They all have sent me their UDIDs so that I can put them somewhere on Apple Developer's site so that their iPad can magically install the IPA I sent.
As you might have guessed, I have no idea what to do in this regard. I've searched around the web and I am amazed that I was still unable to get a clue.
I tried this particular link for e.g. and got stuck in the middle of instructions:-
http://developer.apple.com/library/ios/#documentation/ToolsLanguages/Conceptual/YourFirstAppStoreSubmission/TestYourApponManyDevicesandiOSVersions/TestYourApponManyDevicesandiOSVersions.html
Certificates, Provisions, App ID; I'd be very thankful if someone could tell me some easy steps for the following problems:-
How can I install the iPad App to my iPad that I developed in XCode. This iPad is attached to my computer?
How can create an IPA file that I can send to other testers so that this IPA can install on their iPads and they can run it?
What if I take the source code from my home machine to office machine? How can I still make changes to the app and could install it back on my iPad to test?
I know these are all beginner questions, but they are rolling my head!
Are you are paid up registered developer? If so go to the Xcode Organizer and hit the button that says "Use for development" on the page for your iPad in the "Devices" section. If not you'll need to pay for a license in order to run your app on a device.
Create an IPA file by using the "Archive" function in the "Project" menu. However, you will need to add the other users' devices to your iOS developer portal. You cannot just send the IPA to anyone. It needs to be built specifically for all the devices you want to run it (you only build once but it needs to include all the devices).
I use http://testflightapp.com for distributing remote builds. It makes the whole process much easier. You create a team on Testflight and invite your testers. Once they have joined your team you can get their device IDs that you use to put into the iOS developer portal. You can then upload your build to Testflight (use the desktop app). This will then email everyone and they can get the app from Testflight.
Use source control for this. http://bitbucket.org is free and you can create private repos. If you haven't used git before then there's a bit to learn but essentially you sync a version on to bitbucket that you can pull down to any computer. When the changes are made you push back.
i.e. home computer - push to bitbucket.
work computer - pull from bitbucket, make changes, push back to bitbucket.
home computer - pull from bitbucket.
Now your home computer has all the changes you made on your work computer.
RE 2
Go to developer.apple.com and log in to your iOS portal.
Go to the Devices section.
Add the devices using the UUIDs.
You will also have a provisioning profile for development.
You need to then add the devices in to this provisioning profile.
...Hmm I may blog about this to show how to do it...
Once you've added the devices to the provisioning profile you need to download the profile and open it. (This will open Xcode).
Once all of this is done the devices you added will then be able to run the IPA file you send them.

Resources