Commit 4d7578f
authored
Add CI and Fastlane automation for one-off and nightly TestFlight builds (#24443)
* Explicitly set .ipa output name when building for ASC
We'll use it to derive the path when uploading the ipa to TestFlight in
a dedicated lane.
* Add lane to upload Reader build to TestFlight
* Hack a version long and short to use for TestFlight upload testing
* Add dedicated pipeline to upload Reader to TestFlight
* Add trigger button to send Reader build to TestFlight
* Address RuboCop violations
* Only install gems in Reader upload script
No need to set up Swift packages or XCFrameworks.
* Set `VERSION_LONG` as `BUILDKITE_BUILD_NUMBER` default
* Specify supported device orientation for iPhone and iPad
Aims to address:
[Application Loader Error Output]: [ContentDelivery.Uploader.6000033F8180] Validation failed (409) Invalid bundle. No orientations were specified in the com.automattic.reader bundle. To support iPad multitasking, specify the “UIInterfaceOrientationPortrait,UIInterfaceOrientationPortraitUpsideDown,UIInterfaceOrientationLandscapeLeft,UIInterfaceOrientationLandscapeRight” orientations for the UISupportedInterfaceOrientations Info.plist key. For details, visit: https://developer.apple.com/documentation/bundleresources/information_property_list/uisupportedinterfaceorientations. (ID: b7c3b053-0ea8-4267-83dc-1dee7ea62885)
See
https://buildkite.com/automattic/wordpress-ios/builds/27266/steps?sid=0196236d-400e-4be1-9cf8-399f2ca6b45c
* Make Reader upload depend on both build and block step
I was expecting the implicit dependency in the block to force the upload
to wait till the build finished, but that was not the case in
https://buildkite.com/automattic/wordpress-ios/builds/27273/steps?sid=019624d9-64df-4b64-89da-927be7ecb550
* Add required value for `NSMicrophoneUsageDescription` to Reader
Aims to address the App Store Connect upload issues:
> ITMS-90683: Missing purpose string in Info.plist - Your app’s code references one or more APIs that access sensitive user data, or the app has one or more entitlements that permit such access.
> The Info.plist file for the “Reader.app” bundle should contain a NSMicrophoneUsageDescription key with a user-facing purpose string explaining clearly and completely why your app needs the data.
> If you’re using external libraries or SDKs, they may reference APIs that require a purpose string.
> While your app might not use these APIs, a purpose string is still required.
> For details, visit: https://developer.apple.com/documentation/uikit/protecting_the_user_s_privacy/requesting_access_to_protected_resources.
* Add required value for `NSCameraUsageDescription` to Reader
Aims to address the App Store Connect upload issues:
> ITMS-90683: Missing purpose string in Info.plist - Your app’s code references one or more APIs that access sensitive user data, or the app has one or more entitlements that permit such access.
> The Info.plist file for the “Reader.app” bundle should contain a NSCameraUsageDescription key with a user-facing purpose string explaining clearly and completely why your app needs the data.
> If you’re using external libraries or SDKs, they may reference APIs that require a purpose string.
> While your app might not use these APIs, a purpose string is still required.
> For details, visit: https://developer.apple.com/documentation/uikit/protecting_the_user_s_privacy/requesting_access_to_protected_resources.
* Point Reachability to Automattic's fork
This addresses the App Store Connect upload issue:
> ITMS-90338: Non-public API usage - The app references non-public symbols in Frameworks/Keystone.framework/Keystone: _kReachabilityChangedNotification.
> If method names in your source code match the private Apple APIs listed above, altering your method names will help prevent this app from being flagged in future submissions.
> In addition, note that one or more of the above APIs may be located in a static library that was included with your app.
> If so, they must be removed.
> For further information, visit the Technical Support Information at http://developer.apple.com/support/technical/
* Prefix `bodyTextColor` and `titleTextColor` (unsed) with `wp`
This is to avoid a clash with Apple's private APIs in the dependency
setup with Keystone.
> ITMS-90338: Non-public API usage - The app references non-public selectors in Frameworks/Keystone.framework/Keystone: setBodyTextColor:, setTitleTextColor:.
> If method names in your source code match the private Apple APIs listed above, altering your method names will help prevent this app from being flagged in future submissions.
> In addition, note that one or more of the above APIs may be located in a static library that was included with your app.
> If so, they must be removed.
> For further information, visit the Technical Support Information at http://developer.apple.com/support/technical/
* Update Fastlane to latest version
* Add `ITSAppUsesNonExemptEncryption = NO` to Reader
* Disable distribution groups to attempt fixing TestFlight issue
See how this build fails
https://buildkite.com/automattic/wordpress-ios/builds/27323/steps?sid=01963655-580b-44c3-846f-ef84df40eb86
"Builds cannot be assigned to this internal group. - Cannot add internal group to a build."
However, on TestFlight itself the build is successfully part of the
group and distributed.1 parent dbb0750 commit 4d7578f
File tree
14 files changed
+149
-28
lines changed- .buildkite
- commands
- Modules
- Sources
- WordPressUI/FancyAlert
- WordPress
- Classes
- Extensions/Colors and Styles
- ViewRelated/Stats
- WordPress.xcodeproj
- fastlane
- lanes
- reader_metadata/default
14 files changed
+149
-28
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
9 | 21 | | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
20 | 38 | | |
21 | 39 | | |
22 | 40 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 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 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
| 27 | + | |
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| |||
125 | 125 | | |
126 | 126 | | |
127 | 127 | | |
128 | | - | |
| 128 | + | |
129 | 129 | | |
130 | 130 | | |
131 | 131 | | |
| |||
165 | 165 | | |
166 | 166 | | |
167 | 167 | | |
168 | | - | |
| 168 | + | |
169 | 169 | | |
170 | 170 | | |
171 | 171 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
45 | | - | |
| 45 | + | |
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| |||
Lines changed: 4 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
65 | | - | |
| 65 | + | |
| 66 | + | |
66 | 67 | | |
67 | 68 | | |
68 | 69 | | |
| |||
73 | 74 | | |
74 | 75 | | |
75 | 76 | | |
76 | | - | |
| 77 | + | |
| 78 | + | |
77 | 79 | | |
78 | 80 | | |
79 | 81 | | |
| |||
Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
72 | 72 | | |
73 | 73 | | |
74 | 74 | | |
75 | | - | |
| 75 | + | |
76 | 76 | | |
77 | 77 | | |
78 | | - | |
| 78 | + | |
79 | 79 | | |
80 | 80 | | |
81 | 81 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
70 | | - | |
| 70 | + | |
71 | 71 | | |
72 | 72 | | |
73 | 73 | | |
| |||
0 commit comments