{"action":"created","issue":{"url":"https://api.github.com/repos/fastlane/fastlane/issues/5152","repository_url":"https://api.github.com/repos/fastlane/fastlane","labels_url":"https://api.github.com/repos/fastlane/fastlane/issues/5152/labels{/name}","comments_url":"https://api.github.com/repos/fastlane/fastlane/issues/5152/comments","events_url":"https://api.github.com/repos/fastlane/fastlane/issues/5152/events","html_url":"https://github.com/fastlane/fastlane/issues/5152","id":160804545,"number":5152,"title":"Code Sign error for cocoapods","user":{"login":"amycheong19","id":9781961,"avatar_url":"https://avatars.githubusercontent.com/u/9781961?v=3","gravatar_id":"","url":"https://api.github.com/users/amycheong19","html_url":"https://github.com/amycheong19","followers_url":"https://api.github.com/users/amycheong19/followers","following_url":"https://api.github.com/users/amycheong19/following{/other_user}","gists_url":"https://api.github.com/users/amycheong19/gists{/gist_id}","starred_url":"https://api.github.com/users/amycheong19/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amycheong19/subscriptions","organizations_url":"https://api.github.com/users/amycheong19/orgs","repos_url":"https://api.github.com/users/amycheong19/repos","events_url":"https://api.github.com/users/amycheong19/events{/privacy}","received_events_url":"https://api.github.com/users/amycheong19/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/fastlane/fastlane/labels/cert","name":"cert","color":"bfd4f2"},{"url":"https://api.github.com/repos/fastlane/fastlane/labels/sigh","name":"sigh","color":"c7def8"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":10,"created_at":"2016-06-17T03:20:26Z","updated_at":"2016-08-04T14:00:01Z","closed_at":null,"body":"##### I followed the [guide](https://labs.kunstmaan.be/blog/ios-continuous-delivery-with-jenkins-and-fastlane) to setup fastlane with hockey app. The error only happened to cocoapods libraries. Is there any settings I need to fine tune?\r\n\r\n```\r\n▸ Building Pods/CocoaLumberjack [(Release)]\r\n▸ Check Dependencies\r\n\r\n❌  Code Sign error: No matching codesigning identity found: No codesigning identities (i.e. certificate and private key pairs) matching “iPhone Distribution:XXXX XXX” were found.\r\n```\r\n##### Here is my fastfile\r\n\r\n```\r\nfastlane_version \"1.95.0\"\r\n\r\ndefault_platform :ios\r\n\r\nplatform :ios do\r\n  # Run this before doing anything else\r\n  before_all do\r\n    # If the IT status is not clean, abort. We won't want to include junk in the build\r\n    ensure_git_status_clean\r\n  end\r\n\r\n  private_lane :build_app do |options|\r\n\r\n    # This part is done only when the app is not for the \"production\" environment\r\n    if not options[:release]\r\n      # Modulate the color of the icons\r\n      color_icon(\r\n        modulation: \"#{options[:modulation]}\"\r\n      )\r\n      # Add the build number to the icon\r\n      build_number_icon\r\n    end\r\n\r\n    # Update the app name\r\n    app_name(\r\n      plist_path: \"#{options[:project_name]}/Info.plist\",\r\n      app_name: options[:app_name]\r\n    )\r\n\r\n    # Update the app identifier\r\n    update_app_identifier(\r\n      xcodeproj: \"#{options[:project_name]}.xcodeproj\",\r\n      plist_path: \"#{options[:project_name]}/Info.plist\",\r\n      app_identifier: options[:app_identifier]\r\n    )\r\n\r\n    # Install the certificate\r\n    import_certificate(\r\n      certificate_path: options[:certificate_path],\r\n      certificate_password: options[:certificate_password],\r\n      keychain_name: \"login.keychain\"\r\n    )\r\n\r\n    # Install the provisioning profile\r\n    update_project_provisioning(\r\n      xcodeproj: \"#{options[:project_name]}.xcodeproj\",\r\n      profile: options[:profile]\r\n    )\r\n\r\n    # Version bump\r\n    increment_build_number(\r\n      build_number: options[:build_number]\r\n    )\r\n\r\n    # Build the app\r\n    gym(\r\n      scheme: \"#{options[:scheme]}\",\r\n      configuration: options[:configuration],\r\n      provisioning_profile_path: options[:profile],\r\n      codesigning_identity: options[:codesigning_identity],\r\n      export_method: options[:export_method]\r\n    )\r\n\r\n  end\r\n\r\n  # Publish to Hockeyapp\r\n  private_lane :publish_hockey do |options|\r\n\r\n    # Generate a changelog with GIT since the last successful build in Jenkins\r\n    changelog = sh(\"git log --graph --pretty=format:'%h -%d %s <%an>' --abbrev-commit #{ENV['GIT_PREVIOUS_SUCCESSFUL_COMMIT'] || 'HEAD^^^^^'}..HEAD\")\r\n\r\n    # Send the app to Hockeyapp (fill in your API token!)\r\n    hockey(\r\n      api_token: \"[Hockey app key]\",\r\n      notes: \"#{changelog.to_s}\",\r\n      release_type: options[:release_type]\r\n    )\r\n  end\r\n\r\n  # Publish to the AppStore\r\n  private_lane :publish_appstore do |options|\r\n    deliver(force: true)\r\n  end\r\n\r\n\r\n  # Build and publish the Beta version to Hockeyapp\r\nlane :beta_hockeyapp do\r\n# Build\r\nbuild_app(\r\n  # Not a production release, so add build number and do the color modulation of the icons\r\n  release:false,\r\n  # Modulate the colors of the icons by these degrees\r\n  modulation:66.6,\r\n  # Change the app name\r\n  app_name:\"<App Name>\",\r\n  # Set the app id\r\n  app_identifier:\"com.company.<appname>\",\r\n  # Set the path to the certificate to use in building\r\n  certificate_path:\"./Certificates/Company/<cert>.p12\",\r\n  # Set the password of the p12 certificate file\r\n  certificate_password:\"<password>\",\r\n  # Set the path to the provisioning profile to use (change this!)\r\n  profile:\"./Certificates/Company/<profile>.mobileprovision\",\r\n  # What configuration to use, usefull for keeping different API keys etc between environments\r\n  configuration:\"[INT] <project_name>\",\r\n  # Use this codesigning identity (this is the name of the certificate in your keychain)\r\n  codesigning_identity:\"Project Distribution\",\r\n  # Export an enterprise app\r\n  export_method:\"enterprise\",\r\n  # the projectname, this is the name of the .xcodeproj file and the folder containing your code in the project\r\n  project_name:<Project>,\r\n  # the scheme to build\r\n  scheme:\"Project-Internal\",\r\n  # the build number to use, we use the build number from Jenkins\r\n  build_number: ENV[\"BUILD_NUMBER\"] \r\n)\r\n# Push to Hockeyapp as Beta release\r\npublish_hockey(release_type: \"0\")\r\n  end\r\n\r\n  # After all the steps have completed succesfully, run this.\r\n  after_all do |lane|\r\n\r\n    # Remove all build artifacts, but keep mobileprovisioning profiles since they are stored in GIT\r\n    clean_build_artifacts(\r\n      exclude_pattern: \".*\\.mobileprovision\"\r\n    )\r\n\r\n    # Reset all changes to the git checkout\r\n    reset_git_repo(\r\n      force: true\r\n    )\r\n  end\r\n\r\n  # If there was an error, run this\r\n  error do |lane, exception|\r\n    # Remove all build artifacts, but keep mobileprovisioning profiles since they are stored in GIT\r\n    clean_build_artifacts(\r\n      exclude_pattern: \".*\\.mobileprovision\"\r\n    )\r\n\r\n    # Reset all changes to the git checkout\r\n    reset_git_repo(\r\n      force: true\r\n    )\r\n  end\r\nend\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/fastlane/fastlane/issues/comments/237561414","html_url":"https://github.com/fastlane/fastlane/issues/5152#issuecomment-237561414","issue_url":"https://api.github.com/repos/fastlane/fastlane/issues/5152","id":237561414,"user":{"login":"pj4533","id":110283,"avatar_url":"https://avatars.githubusercontent.com/u/110283?v=3","gravatar_id":"","url":"https://api.github.com/users/pj4533","html_url":"https://github.com/pj4533","followers_url":"https://api.github.com/users/pj4533/followers","following_url":"https://api.github.com/users/pj4533/following{/other_user}","gists_url":"https://api.github.com/users/pj4533/gists{/gist_id}","starred_url":"https://api.github.com/users/pj4533/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pj4533/subscriptions","organizations_url":"https://api.github.com/users/pj4533/orgs","repos_url":"https://api.github.com/users/pj4533/repos","events_url":"https://api.github.com/users/pj4533/events{/privacy}","received_events_url":"https://api.github.com/users/pj4533/received_events","type":"User","site_admin":false},"created_at":"2016-08-04T14:00:01Z","updated_at":"2016-08-04T14:00:01Z","body":"If anyone ends up here, I found my solution was to go delete all my local provisioning profiles, and let match do its thing from there.  (All profiles are in ~/Library/MobileDevice/Provisioning Profiles)\r\n\r\nSeems like maybe I had an old pre-match one that didn't use the current certificate, and even though I had the environment variable in the PROJECT for sigh/match, cocoa pods didn't like that.  Or something, I dunno.   ¯\\_(ツ)_/¯\r\n"}}
{"actor":{"display_login":"pj4533"}}