How to Deploy Swift iOS Apps made with XCODE 6-beta and TestFlight - iphone

I understand Swift is a new language and I also understand what Beta means but still it is possible and necessary to test deploy newly creates apps on the phone without updating it to iOS8.
However when I tried to use the TestFlight service, as I have done in the past (I know Apple has acquired the company), all works great until TestFlight tries to install the app on the phone. At that time one receives an error message ..."cannot be installed at this time" ...
Does anybody have an idea how I can make TestFlight work or have a viable alternative so I can test my app on the phone of somebody remote.
Any insight is highly appreciated.

Export the IPA as you normally would, making sure that you use your AdHoc provisioning profile for the release (in the build settings).
Then here's the workaround to get it to work with testflight.
Open a terminal and go to the directory where the IPA lives
ditto -xk myapp.ipa /tmp/myapp
ditto -ck --norsrc /tmp/myapp ./myapp-after.ipa
rm -rf /tmp/myapp
Upload myapp-after.ipa as your TestFlight build.

Related

Ionic 3 compile IPA without mac

How do I generate IPA file for my ionic app without using Mac? Is it even possible?
Currently, I just need the generated IPA file; I don't need to deploy the app to the App Store.
I've looked around and these are what I got:
Use Ionic package - unfortunately, all links to Ionic package that I got are all dead. So can I assume this service is dead?
Use https://build.phonegap.com/ . I know Ionic is based on Phonegap, but does this service actually supports compiling Ionic codes without needing me to modify anything? And even if it can, I read that it needs some sort of certificates to compile to IPA. Is there any way I can get the certificate without a Mac?
Use MacInCloud.com. If the options above aren't available, I plan to purchase the pay-as-you-go plan. My question is, do this thing allows me to compile to IPA without me needing any other stuff? Like certificates or whatsoever.
I’m using Ionic Pro (https://ionicframework.com/appflow) to build an IPA and diawi.com to send the app to my clients for testing. To publish app in Apple App Store, I’m using MacInCloud.

Can I use TestFlight with Ionic 3 without one MacOS?

So I'm developing one application with Ionic 3 and we had some problems to test push notifications and generate one test version for iOS users.
Recently Ionic View was removed from Apple store, and same with the Ionic View in the apple store we had some problems to test push notifications, I know that Apple has TestFlight and we think that we can use TestFlight for our iOS users but I don't have one mac but I have Ionic Pro.
My doubt is that "Can I use Ionic Pro to generate one version to use in TestFlight without one MacOS?"
You can use Ionic Pro to do most of what you're looking for, EXCEPT creating the proper .p12 certificate file. As far as I know, you must use a Mac for that. Fortunately, that's a one-time process, so you can perform other aspects of the build process within Ionic Pro.
So, basically you need to create your .p12 certification file on a mac, and
upload it to Ionic Pro -> Settings -> Certificates. You can then build .ipa files with proper credentials in the cloud. Then... you have to upload the ipa file to the app store, and distribute it via TestFlight there.
Another option: There is a pay-as-you-go Mac cloud account service (https://www.macincloud.com/) that might be perfect for what you're doing, specifically since you either only need to create the certificates (at best) or you'd only have to use it when you were creating builds and uploading them via XCode Application Loader. (at worst) Perhaps that's something that you might want to explore? I will say, it is much easier doing that kind of development directly from within a Mac environment, unfortunately.

Xcode 4 and jailbroken iPhone

I've just purchased Xcode 4 and am trying to develop my apps in it. I don't currently have a developers license however (and don't want one until I am ready to submit to the app store) so I have jailbroken my device and installed appsync.
After following the steps suggested in this thread, not only can I not deploy to my iPhone, but now any project I create for iPhoneOS, I get the warning;
Target Integrity
Missing SDK in target XXXXX: iphoneos
I don't know enough about sed to know what went on during the steps when I was trying to get it work so my question has two parts really:
How do I restore Xcode to its previous state so I can use the iOS SDK (Really don't want to have to download 4+GB from Apple again).
How do I configure Xcode 4 to deploy to my jailbroken iPhone for testing. ( I should have previously mentioned that I had everything working in Xcode 3.2 an I have already tried deleted and recreating the self signed certificate as iPhone Developer).
EDIT
I removed the warnings that I didn't didn't have the SDK by simply reverting to the backup file that sed generated.
EDIT 2
Should have played about a bit more before asking here I guess... I recreated another developer certificate and replace the relevant contents of the SDKSettings.plist with this:
<key>AD_HOC_CODE_SIGNING_ALLOWED</key>
<string>YES</string>
<key>CODE_SIGNING_REQUIRED</key>
<string>NO</string>
<key>CODE_SIGN_ENTITLEMENTS</key>
<string></string>
<key>DEAD_CODE_STRIPPING</key>
<string>YES</string>
<key>ENTITLEMENTS_REQUIRED</key>
<string>NO</string>
And it all works! However, I am unable to debug as I can't find the Project > New Build Phase > New Run Script Build Phase option in the new XCode layout. Could someone enlighten me?
From what i see in this reply, which I guess you followed, the steps proposed are clean and each time backuping original files. So for your first question, just restore original files :
/Developer/Platforms/iPhoneOS.platform/Info.plist.bak
/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.2.sdk/SDKSettings.plist.bak
/Developer/Platforms/iPhoneOS.platform/Developer/Library/Xcode/Plug-ins/iPhoneOS Build\ System Support.xcplugin/Contents/MacOS/iPhoneOS Build System Support.original
EDIT : Run build phase is now there, in project preferences :
Give Jailcoder a try, it automates the whole process

Testers unable to install application

I've sent my iphone application to my testers and all but one complain that the get error OxE8003FFE when they sync their devices. They are not able to install and run the application.
I'm using an ad hoc distribution provisioning profile and all of the testers devices are included in the profile.
I'm not sure how to proceed and would really appreciate any help you might be to give.
One more interesting bit of information: The program is a universal iPad/iPhone application. My testers are able to install it on their iPads but not their iPhones.
Did you properly add entitlements.plist, and uncheck the box therein?
I would recommend having one device locally that you deploy to through iTunes (not building through XCode), to test that the IPA file will work for other testers. That may mean buying an iPod touch, even the very oldest one will do (if you are targeting 3.x users).
I'd suggest you to right click your package, find a file embedded provisioning profile and open it with TextEdit. See that the name of the profile you've signed your application is indeed of that of ad-hoc.
After that be sure you sent this file (embedded provisioning profile) along with your ad-hoc build to your testers, because they have to install it on their devices, it's not being done automatically and w/o that profile your ad-hoc build will not sync to the device.
After some back and forth with DTS I managed to fix this issue.
The problem was that I was compiling for armv7 only which caused the installation to fail on armv6 machines.
Another interesting bit, the default universal project template and iphone projects converted to universal will compile for both architectures by default, this didn't happen for me bacause my project was initially an iPad only project which I converted manually (since there are no automatic tools for this) to be iPhone/iPad universal, this is the probable reason for this setting being incorrect in my project.

iPhone app doesn't stay installed (icon disappears)

I'm trying to install Zxing on my iphone from source (I know I can get it at the app store, but I want to modify some things in it).
The problem I'm having is that the app won't stay installed on the phone. It will run without a problem, but no icon will appear after I quit the app. I thought it had to do with my manually editing the codesign information in the project.pbxproj but after the developers changed the codesign identity they had left in the checked in version, the problem still persists.
I tried deploying an app I had developed from scratch and that worked fine.
I'm new to this, so any help would be much appreciated. You can download the zxing code from here:
svn checkout http://zxing.googlecode.com/svn/trunk/ zxing-read-only
Have you downloaded a copy from the App Store? I had one app (built from Xcode) that wasn't staying around after a sync and I found it was because iTunes was looking at my application syncing preferences and it wasn't selected to sync (as I had the Xcode build version on there, I didn't want to sync that version). However, it presumably removes the built app because I said I didn't want to sync any version of it.
Checking the checkbox to sync the app in iTunes kept the Xcode built version on there without installing the App Store version.
Hope this helps.
I think the problem had to do with my iPhone firmware. It might be a bug from Apple as I got an email from truphone saying that users were experiencing similar problems. I re-installed firmware, and could install it fine, and sync other apps. As soon as I did a restore from a previous backup, it broke again... what a pain. Case closed.