Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fastlane cleanup #84

Merged
merged 6 commits into from Aug 7, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
20 changes: 19 additions & 1 deletion FASTLANE.md
Expand Up @@ -19,7 +19,7 @@ Before you can build your iOS app, some Developer Account setup and build config
2. Once you have logged into your Apple Developer account in XCode, you will need to update __`fastlane/Appfile`__. You will need to update the `app_identifier`, `apple_id`, and `team_id`.
- The `app_identifier` is the app id for your application. This should be unique and used on all future updates. If you already have a live app, please use the app id for your existing app.
- The `apple_id` is the email for your Apple Developer account (same one you logged in with in step 1).
- The `team_id` is the id for your development team. You will need this if your Apple account is tied to many development teams. You can find your __team_id__ in Apple's Developer dashboard by going to __Overview__.
- The `team_id` is the id for your development team. You will need this if your Apple account is tied to many development teams. You can find your __team_id__ in Apple's Developer portal by going to __Overview__.
<a href="https://drive.google.com/uc?export=view&id=14XJDbkj29mxln2jynLASDpSnrrtLFENM"><img src="https://drive.google.com/uc?export=view&id=14XJDbkj29mxln2jynLASDpSnrrtLFENM" style="width: 500px; max-width: 100%; height: auto" title="Click for the larger version." /></a>

3. Once the Appfile is updated, you will need to update __`fastlane/Fastfile`__. You will need to update the `app_display_name`, `app_version_num`, and `app_build_num`.
Expand Down Expand Up @@ -96,6 +96,8 @@ fastlane create_prov
fastlane build_and_upload
```

__Note:__ If your Apple ID is linked to multiple iTunes Connect teams, you will be prompted to select your team from a list before the upload starts. The iTunes Connect team id is not the same as the team id for the Apple Developer portal.

(Optional) If you did not create your provisioning profile with Fastlane, you can download your provisioning profile and enter the following:

```
Expand All @@ -110,3 +112,19 @@ fastlane upload
```

Once you have started the build and upload process, be aware Fastlane may ask you for permission (computer password) and confirmation to continue the process. When prompted for your password it is faster to click "Always Allow" or it will ask you multiple times afterward.

#### Updating App Metadata

11. (Optional) If you want use Fastlane to update your app's metadata on iTunes Connect you can update the files within the __`fastlane/metadata`__ folder. By default, the app will only update the metadata for `en-US` using the files found in `fastlane/metadata/default` folder. You can see which languages are updated within the __fastlane/Deliverfile__. The default language is the first language listed in the `languages` field.

To upload the metadata, simply enter:

```
fastlane update_metadata
```

You can also update the review information inside __`fastlane/metadata/review_information`__. This info will be included when you submit your app for review. If you include a demo user and password, make sure that it matches a test consumer in the Zype platform.

When uploading if you are a part of multiple iTunes Connect teams you will be asked to confirm your team before upload. You will also need to confirm that the metadata is correct before upload.

If you want to add additional languages, you can update the `languages` in __fastlane/Deliverfile__ and create a folder named after the language code you want to add metadata for along with the `.txt` files. To see all the supported language codes, you can visit: [https://docs.fastlane.tools/actions/upload_to_app_store/#available-language-codes](https://docs.fastlane.tools/actions/upload_to_app_store/#available-language-codes)
17 changes: 8 additions & 9 deletions Zype.xcodeproj/project.pbxproj
Expand Up @@ -988,9 +988,8 @@
ORGANIZATIONNAME = Zype;
TargetAttributes = {
780AC69F1BDFD284007F1119 = {
DevelopmentTeam = 66JU87JGLE;
LastSwiftMigration = 0920;
ProvisioningStyle = Automatic;
ProvisioningStyle = Manual;
SystemCapabilities = {
com.apple.InAppPurchase = {
enabled = 1;
Expand Down Expand Up @@ -1098,7 +1097,7 @@
);
inputPaths = (
"${SRCROOT}/Pods/Target Support Files/Pods-Zype/Pods-Zype-frameworks.sh",
"${PODS_ROOT}/GoogleAds-IMA-iOS-SDK/GoogleInteractiveMediaAds.framework",
"${PODS_ROOT}/GoogleAds-IMA-iOS-SDK/GoogleInteractiveMediaAds/GoogleInteractiveMediaAds.framework",
);
name = "[CP] Embed Pods Frameworks";
outputPaths = (
Expand Down Expand Up @@ -1315,8 +1314,8 @@
CLANG_ENABLE_MODULES = YES;
CODE_SIGN_IDENTITY = "iPhone Developer";
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
CODE_SIGN_STYLE = Automatic;
DEVELOPMENT_TEAM = 66JU87JGLE;
CODE_SIGN_STYLE = Manual;
DEVELOPMENT_TEAM = "";
ENABLE_BITCODE = NO;
FRAMEWORK_SEARCH_PATHS = (
"$(inherited)",
Expand Down Expand Up @@ -1348,10 +1347,10 @@
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CLANG_ENABLE_MODULES = YES;
CODE_SIGN_IDENTITY = "iPhone Distribution: ZYPE MEDIA GROUP LLC (66JU87JGLE)";
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
CODE_SIGN_STYLE = Automatic;
DEVELOPMENT_TEAM = 66JU87JGLE;
CODE_SIGN_IDENTITY = "iPhone Distribution";
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Distribution";
CODE_SIGN_STYLE = Manual;
DEVELOPMENT_TEAM = "";
ENABLE_BITCODE = NO;
FRAMEWORK_SEARCH_PATHS = (
"$(inherited)",
Expand Down
1 change: 1 addition & 0 deletions fastlane/Deliverfile
@@ -0,0 +1 @@
languages(['en-US'])
12 changes: 11 additions & 1 deletion fastlane/Fastfile
Expand Up @@ -228,7 +228,6 @@ platform :ios do
deliver(
username: apple_dev_id,
app_identifier: app_id,
team_id: dev_team_id,
dev_portal_team_id: dev_team_id,
screenshots_path: "./screenshots"
)
Expand All @@ -242,4 +241,15 @@ platform :ios do
upload
end

desc "Update app metadata"
lane :update_metadata do
upload_to_app_store(
username: apple_dev_id,
app_identifier: app_id,
dev_portal_team_id: dev_team_id,
skip_binary_upload: true,
skip_screenshots: true
)
end

end
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.