{"action":"created","issue":{"url":"https://api.github.com/repos/KrauseFx/fastlane/issues/602","labels_url":"https://api.github.com/repos/KrauseFx/fastlane/issues/602/labels{/name}","comments_url":"https://api.github.com/repos/KrauseFx/fastlane/issues/602/comments","events_url":"https://api.github.com/repos/KrauseFx/fastlane/issues/602/events","html_url":"https://github.com/KrauseFx/fastlane/issues/602","id":106996385,"number":602,"title":"Fastlane fail with: Invalid code signing settings","user":{"login":"ricardopereira","id":3541185,"avatar_url":"https://avatars.githubusercontent.com/u/3541185?v=3","gravatar_id":"","url":"https://api.github.com/users/ricardopereira","html_url":"https://github.com/ricardopereira","followers_url":"https://api.github.com/users/ricardopereira/followers","following_url":"https://api.github.com/users/ricardopereira/following{/other_user}","gists_url":"https://api.github.com/users/ricardopereira/gists{/gist_id}","starred_url":"https://api.github.com/users/ricardopereira/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ricardopereira/subscriptions","organizations_url":"https://api.github.com/users/ricardopereira/orgs","repos_url":"https://api.github.com/users/ricardopereira/repos","events_url":"https://api.github.com/users/ricardopereira/events{/privacy}","received_events_url":"https://api.github.com/users/ricardopereira/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":23,"created_at":"2015-09-17T14:24:06Z","updated_at":"2015-09-20T17:58:02Z","closed_at":null,"body":"I'm always getting `Your project settings define invalid code signing settings`. Locally it's working but not on the CI server. I think I have everything fine but something is missing:\r\n```\r\nVariable Dump:\r\n{:DEFAULT_PLATFORM=>:ios, :ENVIRONMENT=>nil, :PLATFORM_NAME=>:ios, :LANE_NAME=>\"ios beta\", :CERT_FILE_PATH=>\"./YSLE7K35GW.cer\", :CERT_CERTIFICATE_ID=>\"YSLE7K35GW\", :SIGH_PROFILE_PATH=>\"/Users/distiller/x-ios-app/AppStore_x.x.x.mobileprovision\", :SIGH_UDID=>\"076b19d1-1dcd-4191-9c6a-cbea25015ggc\", :BUILD_NUMBER=>\"10\"}\r\n```\r\n\r\nI used _Code Signing: Best Solution - Using environment variables_ approach.\r\n\r\n**Version**\r\n`Successfully installed fastlane-1.26.0`\r\n\r\n**Fastfile**\r\n```ruby\r\n  desc \"**Build** the app\"\r\n  lane :build do |options|\r\n    # Code Signing\r\n    if options[:sign]\r\n      cert\r\n    end\r\n\r\n    # Provisioning profiles\r\n    sigh\r\n    # Use the UDID of the newly created provisioning profile\r\n    ENV[\"PROFILE_UDID\"] = lane_context[SharedValues::SIGH_UDID]\r\n\r\n    # App build number\r\n    if options[:increment]\r\n      increment_build_number\r\n    end\r\n\r\n    # Build your app\r\n    gym\r\n  end\r\n\r\n  desc \"Submit a new Beta Build to **TestFlight** and **Crashlytics**\"\r\n  desc \"This will also make sure the profile is up to date\"\r\n  lane :beta do |options|\r\n    # Notifications\r\n    if options[:slack]\r\n      $use_slack = true\r\n    else \r\n      $use_slack = false\r\n    end\r\n    # Steps\r\n    cert\r\n    build(release: false, sign: true, increment: true)\r\n    testflight(skip_deploy: true) # Skip the distribution of the app to all beta testers\r\n    crashlytics(crashlytics_path: './Pods/Crashlytics/Crashlytics.framework', ipa_path: './build/X.ipa')\r\n  end\r\n```\r\n\r\n**Gymfile**\r\n```ruby\r\nscheme \"X\"\r\n\r\n# sdk \"8.0\"\r\n\r\nclean true\r\n\r\n# store the ipa in this folder\r\noutput_directory \"./build\"\r\n\r\n# the name of the ipa file\r\noutput_name \"X\"\r\n```\r\n\r\n**Log**\r\n```\r\n[06:49:37]: --- Step: cert ---\r\n[06:49:37]: ------------------\r\n[06:49:47]: Starting login with user 'services@x.x'\r\n[06:50:00]: Successfully logged in\r\n[06:50:02]: Certificate P5YNN9KJL8 (X) can't be found on your local computer\r\n[06:50:02]: Couldn't find an existing certificate... creating a new one\r\n1 key imported.\r\n1 certificate imported.\r\n[06:50:04]: Successfully generated YSLE7K35GW which was imported to the local machine.\r\n[06:50:07]: Use signing certificate 'YSLE7K35GW' from now on!\r\n[06:50:07]: --------------------------------------\r\n[06:50:07]: --- Step: Switch to ios build lane ---\r\n[06:50:07]: --------------------------------------\r\n[06:50:07]: Cruising over to lane 'ios build' 🚖\r\n[06:50:07]: ------------------\r\n[06:50:07]: --- Step: cert ---\r\n[06:50:07]: ------------------\r\n[06:50:07]: Starting login with user 'services@x.x'\r\n[06:50:08]: Successfully logged in\r\n[06:50:09]: Certificate P5YNN9KJL8 (X) can't be found on your local computer\r\n[06:50:10]: Found the certificate YSLE7K35GW (X) which is installed on the local machine. Using this one.\r\n[06:50:10]: Use signing certificate 'YSLE7K35GW' from now on!\r\n[06:50:10]: ------------------\r\n[06:50:10]: --- Step: sigh ---\r\n[06:50:10]: ------------------\r\n[06:50:11]: Starting login with user 'x@x.x'\r\n[06:50:12]: Successfully logged in\r\n[06:50:12]: Fetching profiles...\r\n[06:50:15]: No existing profiles, creating a new one for you\r\n[06:50:16]: The name 'x.x.x AppStore' is already taken, using another one.\r\n[06:50:16]: Creating new provisioning profile for 'x.x.x' with name 'x.x.x AppStore 1442497816'\r\n[06:50:16]: Downloading provisioning profile...\r\n[06:50:18]: Successfully downloaded provisioning profile...\r\n[06:50:18]: Installing provisioning profile...\r\n./AppStore_x.x.x.mobileprovision\r\n```\r\n\r\n**Build log**\r\n```\r\n[06:50:21]: -----------------\r\n[06:50:21]: --- Step: gym ---\r\n[06:50:21]: -----------------\r\n[06:50:21]: Installing provisioning profile...\r\n[06:50:22]: xcrun xcodebuild -list -workspace './X.xcworkspace'\r\n[06:50:23]: xcrun xcodebuild -showBuildSettings -workspace './X.xcworkspace' -scheme 'X'\r\n\r\n+------------+-----------------------------+\r\n|          Building Application 🚀          |\r\n+------------+-----------------------------+\r\n| Workspace  | ./X.xcworkspace          |\r\n| Scheme     | X                        |\r\n| Platform   | iOS                         |\r\n| Xcode Path | /Applications/Xcode-6.4.app |\r\n+------------+-----------------------------+\r\n\r\n[06:50:24]: set -o pipefail && xcodebuild -workspace './X.xcworkspace' -scheme 'X' -destination 'generic/platform=iOS' -archivePath '/Users/distiller/Library/Developer/Xcode/Archives/2015-09-17/X 2015-09-17 06.50.24.xcarchive' clean archive | xcpretty\r\n\r\n-----\r\n-----\r\n\r\n▸ Cleaning Pods/Runes [Debug]\r\n▸ Cleaning Pods/Box [Debug]\r\n▸ Cleaning Pods/Dodo [Debug]\r\n▸ Cleaning Pods/Argo [Debug]\r\n▸ Cleaning Pods/KeychainAccess [Debug]\r\n▸ Cleaning Pods/RMActionController [Debug]\r\n▸ Cleaning Pods/Realm [Debug]\r\n▸ Cleaning Pods/RMDateSelectionViewController [Debug]\r\n▸ Cleaning Pods/RealmSwift [Debug]\r\n▸ Cleaning Pods/Pods-X [Debug]\r\n▸ Cleaning X/X [Debug]\r\n▸ Building Pods/Box [Release]\r\n\r\n⌦  Code Sign error: No code signing identities found: No valid signing identities (i.e. certificate and private key pair) matching the team ID “(null)” were found.\r\n\r\n\r\n\r\n⌦  CodeSign error: code signing is required for product type 'Framework' in SDK 'iOS 8.4'\r\n\r\n\r\n▸ Building Pods/Runes [Release]\r\n\r\n⌦  Code Sign error: No code signing identities found: No valid signing identities (i.e. certificate and private key pair) matching the team ID “(null)” were found.\r\n\r\n\r\n\r\n⌦  CodeSign error: code signing is required for product type 'Framework' in SDK 'iOS 8.4'\r\n\r\n\r\n** ARCHIVE FAILED **\r\n```\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/KrauseFx/fastlane/issues/comments/141815437","html_url":"https://github.com/KrauseFx/fastlane/issues/602#issuecomment-141815437","issue_url":"https://api.github.com/repos/KrauseFx/fastlane/issues/602","id":141815437,"user":{"login":"KrauseFx","id":869950,"avatar_url":"https://avatars.githubusercontent.com/u/869950?v=3","gravatar_id":"","url":"https://api.github.com/users/KrauseFx","html_url":"https://github.com/KrauseFx","followers_url":"https://api.github.com/users/KrauseFx/followers","following_url":"https://api.github.com/users/KrauseFx/following{/other_user}","gists_url":"https://api.github.com/users/KrauseFx/gists{/gist_id}","starred_url":"https://api.github.com/users/KrauseFx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KrauseFx/subscriptions","organizations_url":"https://api.github.com/users/KrauseFx/orgs","repos_url":"https://api.github.com/users/KrauseFx/repos","events_url":"https://api.github.com/users/KrauseFx/events{/privacy}","received_events_url":"https://api.github.com/users/KrauseFx/received_events","type":"User","site_admin":false},"created_at":"2015-09-20T17:58:02Z","updated_at":"2015-09-20T17:58:02Z","body":"@ricardopereira No, I corrected this. Instead only the `provisioning_profile_path` is deprecated."}}