简体   繁体   中英

Fastlane not working when creating ipa with gym

I'm using Fastlane to automatically generate an IPA. I have a provisioning profile and a production certificate from a team of which I am a member (but not an administrator).

The problem arises when I try to generate the IPA with Fastlane, which does not find the certificate and tries to download a new one. As I am not an administrator, I am not allowed to download another certificate and the operation returns an error.

I tried adding the option "skip_certificate_verification" in the hope that the verification was failing but could be signed if continued. In doing so something interesting happens, because it seems that the entire generation process is executed and even the file comes to appear in the Organizer window of the Xcode, but returns error saying that it has not found a profile for this id app (even though at the beginning of the operation the logs say that the provisioning profile has been downloaded and installed correctly).

Here's my Fastfile

default_platform(:ios)

platform :ios do

  lane :docuten_release do
      sigh(development:false,
        cert_id:"CERTID",
        filename:"my_profile.mobileprovision",
        ignore_profiles_with_different_name:true,
        skip_certificate_verification:true)
      gym(
        scheme: "MyScheme",
        workspace: "myapp.xcworkspace",
        output_directory: ".",
        configuration: "Release"
      )
  end

end

Searching in the logs the main error seems to be:

Code Signing Error: No profiles for 'com.company.myapp' were found: Xcode couldn't find any iOS App Development provisioning profiles matching 'com.company.myapp'. Automatic signing is disabled and unable to generate a profile. To enable automatic signing, pass -allowProvisioningUpdates to xcodebuild. Code Signing Error: Code signing is required for product type 'Application' in SDK 'iOS 11.3'

Is "Automatically manage signing" enabled in your Xcode project? If it is, you need to add export_xcargs: "-allowProvisioningUpdates" to your call to gym as described in the Fastlane Docs .

It is also stated in the error message that is presented to you 🙃

To enable automatic signing, pass -allowProvisioningUpdates to xcodebuild. Code Signing Error: Code signing is required for product type 'Application' in SDK 'iOS 11.3'

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM