Page 1 of 1

Xcode configuration for iOS distribution of Appery project

Posted: Mon Feb 16, 2015 8:11 pm
by Cody Blue

I've reviewed the documentation below, but have a few questions/clarfications that are unanswered:
http://devcenter.appery.io/documentat...

I am submitting my app via Xcode (I can't do a binary submission directly from appery as I am linking extra Xcode frameworks.). I have uploaded all the icons and images as are needed in the iOS binary section and the submission to iTunes Connect is successful.

My questions are:
1) When I import the Appery project in Xcode, the device orientation options appear as below:

Image

While on Apple website (https://developer.apple.com/library/i...), these are as below:

Image

Which ones should I adhere to?

2) I am assuming that I do not need to include a) launch screen files and 2) app icons in Xcode, since there are already included/configured via Appery project?

Image

Image

3) Lastly in code signing section, the under release (see screenshot below), iOS Developer is selected by default when Appery project is opened in Xcode. I should be changing that to iOS Distribution? Correct?

Image

Many thanks.


Xcode configuration for iOS distribution of Appery project

Posted: Mon Feb 16, 2015 9:20 pm
by Illya Stepanov

Hi Cody -

1). It depends on how the app will be used, what ergonomics is used in design of your app and this orientations should be set.
For the iPhone app usually Portrait is enabled. For iPad app usually set all except the Upside Down option.
And again it's up to yours app design and what you want to see in your app, it's up to you.

2). Yes, you're right - there is no need to set icons and splash screens, you'll need to set them up in our builder and after that make an export to xCode.

3). For submitting your app to the App Store you'll need to change the settings - the preferred way is to install on your Mac distribution provision and certificate and after that choose them for usage.
Or also there is a possibility that xCode couldn't find any in the system and will look for them using your account credentials and tries to download them, but the better way is to set them manually.


Xcode configuration for iOS distribution of Appery project

Posted: Tue Feb 17, 2015 2:10 am
by Cody Blue

Hi Illya,

I appreciate the input and feedback. Just to ensure being on the same page on (3), I am assuming you are alluding to profiles in the keychain: screenshot #1 (I've hidden the actual profile names). Also with this set, the debug and release options still appear as iOS developer, but "any iOS SDK" is set to "iPhone Developer" and "iPhone Distribution" respectively. Would this be in line with correct protocol to follow for iTunes submission?

Regarding #1, your perspective helps. In case of an app targeted to be universal (iPhone as wells as iPad) with not special ergonomics needs etc., it then sounds like checking all options except Upside Down is the right way to go?

Thanks.

Image

Image


Xcode configuration for iOS distribution of Appery project

Posted: Tue Feb 17, 2015 11:15 am
by Evgene Karachevtsev

Hello Cody,

[quote:]I should be changing that to iOS Distribution? Correct?[/quote]
1) You should prepare the application and environment: upload provisioning profile and certificate in the system (also please be sure insure that BundleID corresponds to provisioning profile)
2) Select the Production certificate:
For points 1 and 2 in the screenshot (the tab Build Settings) you should set the correct Provisioning Profile instead of Automatic (4)
http://screencast.com/t/f3SCzrTU8hb
And then choose available certificate in Code Signing Identity

Further to publishing in AppStote you must click Product - Archive - Submit to AppStore

This link will be useful for you:
https://developer.apple.com/library/i...
[quote:]Regarding #1, your perspective helps. In case of an app targeted to be universal (iPhone as wells as iPad) with not special ergonomics needs etc., it then sounds like checking all options except Upside Down is the right way to go?[/quote]
Of course there are some values which are found in most applications, but it all depends on specific application itself. For example a game should be in landscape mode on iPhones (in most cases), you should decide yourself what orientation to support/


Xcode configuration for iOS distribution of Appery project

Posted: Wed Feb 18, 2015 4:51 am
by Cody Blue

Evgene,

Thanks for the pointers. Regarding 2) I've thus changed "automatic" to a Distribution profile named "testapp" created via iOS developer account.

Appended below a screenshot with actual profile name blanked out.
Image

Code signing identity (Release as well as Any iOS SDK options) is now set to -- iPhone Distribution: profile name -- selected from the dropdown options in Xcode, while debug is set to "Automatic".

Does the above configuration seem about right for iTunes submission?

Finally, the above doesn't allow me to test on device any more, presumably because the profile (testapp) is for distribution and not development? However, a different (developer) provisioning profile works correctly for testing.

Many thanks.


Xcode configuration for iOS distribution of Appery project

Posted: Wed Feb 18, 2015 11:23 am
by Evgene Karachevtsev

Cody,

Apparently you have everything correct for publishing (if the provisioning profile is correct).What concerns the test after publish, you would need to return everything back to auto, and then you will be able to continue to test on a device, then developer certificates will be used again.


Xcode configuration for iOS distribution of Appery project

Posted: Thu Feb 19, 2015 3:45 am
by Cody Blue

Thanks Evgene. This has been helpful - much appreciated.