-
Notifications
You must be signed in to change notification settings - Fork 13
/
AIR_iOS_readme.txt
75 lines (52 loc) · 3.31 KB
/
AIR_iOS_readme.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
AIR for iOS instructions
1. Configuration:
- edit 'bat\SetupSDK.bat' for path to Flex SDK (defaults should be ok)
3. Build from FlashDevelop as usual (F8)
4. Run/debug the application on the desktop as usual (F5 or Ctrl+Enter)
5. Configure for iOS packaging in 'bat\SetupApplication.bat':
Take a deep breath, pay the Apple tax and read extra carefully this tutorial:
- http://www.codeandvisual.com/2011/exporting-for-iphone-using-air-27-and-flashdevelop-part-three-generating-developer-certificates-provisioning-profiles-and-p12-files/
Now this is how to create the p12 key entirely on Windows (steps 1. to 8.):
- http://connorullmann.com/2011/04/air-2-6-and-ios/
Then for each project you'll have to go to on Apple's iOS Provisioning Portal:
- create a new App ID with: name of the project and ID indicated in 'application.xml',
- create a new Provisioning Profile: select App ID & registered devices that will be allowed to install the app.
Once you have obtained a .p12 and .mobileprovision file from Apple's Provisioning Portal:
- save a copy of your .p12 and .mobileprovision certificates in the 'cert\' folder in your FlashDevelop project.
(make sure to keep an extra copy of these 2 files in a safe place)
Finally edit 'bat\SetupApplication.bat' and complete the following lines:
- IOS_DEV_CERT_FILE: path to your iOS developer 'p12' key ('cert\' folder, if you have followed the instructions above)
- IOS_DEV_CERT_PASS: developer certificate's password
if you don't set it, remove "-storepass %IOS_DEV_CERT_PASS%" from the IOS_SIGNING_OPTIONS,
you'll be prompted to type it when packaging.
- IOS_PROVISION: path to the project's Provisioning Profile file
For example:
set IOS_DIST_CERT_FILE=cert\iphone_dev.p12
set IOS_DEV_CERT_FILE=cert\iphone_dev.p12
set IOS_DEV_CERT_PASS=YourPassword
set IOS_PROVISION=cert\YourFileName.mobileprovision
6. Running/debugging the application on the device:
Note: if are testing your application for performance, always package for release (see step 7.)
6.a. Build/Debug on device
- edit 'Run.bat' and change the run target 'goto desktop' by 'goto ios-debug'
- build as usual (Ctrl+Enter or F5) to package
- you'll still have to manually upload & run the app on the device
- the application should connect to FlashDevelop interactive debugger as usual
6.b. Debug occasionally on device
- Debug-build from FlashDevelop (F8)
- run 'PackageApp.bat' to package and install a debug version of the application
- start FlashDevelop debugger: Debug > Start Remote Session
- start the application on device
- the application should connect to FlashDevelop interactive debugger as usual
7. Packaging for release:
- edit 'bat\SetupApplication.bat' to add the path to your "distribution" certificate (IOS_DIST_CERT_FILE)
Note: you can package ad-hoc IPAs using your developer certificate.
- Release-build from FlashDevelop (F8)
- run 'PackageApp.bat' and select
either iOS/"ad-hoc" for installation on test devices
or iOS/App Store for upload in the iOS App Store.
Tips:
- iFunBox: iTunes replacement; installs app faster even if app version doesn't change,
- TestFlightApp: ad-hoc distribution service http://testflightapp.com
- HockeyKit: self hosted ad-hoc distribution https://github.com/TheRealKerni/HockeyKit
- Manual ad-hoc distribution: http://samvermette.com/71