Tags (separated by Spaces) : Word


From the previous post, continue to step on the pit, and now to build triggers:

  • Build trigger

    Note that there is a space between the * in the figure;

  • There’s another timeout in the build environment, unrelated to the one above, which is added during the build process as needed, and the one below is the timestamp;

Next is Keychains and Mobile PP, mandatory;

Break one by one: Keychains part

${KEYCHAIN_PATH} ${KEYCHAIN_PASSWORD} ${CODE_SIGNING_IDENTITY}
Copy the code

Mobile Provisioning Profiles section

${PROVISIONING_PROFILE}
Copy the code
  • build

The most important part of the whole configuration process, most of the questions are out of here, I am here now in the stage of Archive and file that is successful, and then Archive results can pack of ipa in xcode, specific packaging need to set up a shell script, a lot of online, some can use some can not, so intend to study under the script, Write one yourself and then upload it, and then follow it up on the blog. For now, continue to write down the completed part.

This script does not do packaging operations, just set up the environment, and configure the pod dependency situation, as follows:

#! /bin/bash -l
export LANG=en_US.UTF-8
export LANGUAGE=en_US.UTF-8
export LC_ALL=en_US.UTF-8

pod install --verbose --no-repo-update
open LeWaiJiao.xcworkspace
Copy the code

The following item Pack application,build and sign. ipa is the function of ipA. It has not been worked out for the moment, and will be added later.

Code signing & OS X keychain options

The following bundleID is the bundleID you want to package, info.plist is the path under workspace. Notice the following Development Team ID. This ID is the certificate name on your keystring, and the string of characters in parentheses is composed of letters and numbers. You need to do the corresponding, the following copy of the line, password fill in your computer user password, do not fill in the wrong;

Post a few errors:

Code Signing Error: Code signing is required for product type 'Application' in SDK 'iOS 11.1'
Copy the code

You need to set it up in Xcode and upload it to your Git server to build:

No global development team or local team ID was configured.
Copy the code

It is the Development Team ID part mentioned before. It will be solved if you fill it in. www.jianshu.com/p/8b2fc2da0…

xcodebuild: error: The flag -scheme is required when specifying -archivePath but not -exportArchive.
Copy the code

This problem is also a big pit, seek for a long time, also find sogou: www.jianshu.com/p/8967e4e27… www.tuicool.com/articles/zQ… Github.com/jenkinsci/c…

The most direct solution is to specify the scheme and xcode workspace file, and fill in the name of the xcworkspace generated by scheme and POD in your Xcode project.

Some students don’t know where Scheme is, as shown below:

Above, can guarantee that the build can be successfully completed in the Archive process, if other problems, welcome to discuss in the comment section; The packaging of ipA and upload platform will continue later, and SSH will continue to follow, as SSH does not quite fit into the discussion of this article, so it will not be discussed here.