fastlane: No such file or directory @ rb_sysopen on Xcode 8.3 - Gym
New Issue Checklist
- Updated fastlane to the latest version
- I have read the Contribution Guidelines
Issue Description
gym started to fail after Xcode (Version 8.3 (8E162)) installation
+------------------+----------+
| Lane Context |
+------------------+----------+
| DEFAULT_PLATFORM | ios |
| PLATFORM_NAME | ios |
| LANE_NAME | ios beta |
+------------------+----------+
[20:43:42]: No such file or directory @ rb_sysopen - /Applications/Xcode.app/Contents/Developer//Platforms/iPhoneOS.platform/Developer/usr/bin/PackageApplication
+------+------------------+-------------+
| fastlane summary |
+------+------------------+-------------+
| Step | Action | Time (in s) |
+------+------------------+-------------+
| 1 | update_fastlane | 7 |
| 2 | default_platform | 0 |
| π₯ | gym | 48 |
+------+------------------+-------------+
[20:43:42]: fastlane finished with errors
Looking for related GitHub issues on fastlane/fastlane...
Found no similar issues. To create a new issue, please visit:
https://github.com/fastlane/fastlane/issues/new
Run `fastlane env` to append the fastlane environment to your issue
/Users/bunn/.fastlane/bin/bundle/lib/ruby/2.2.0/digest.rb:49:in `initialize': [!] No such file or directory @ rb_sysopen - /Applications/Xcode.app/Contents/Developer//Platforms/iPhoneOS.platform/Developer/usr/bin/PackageApplication (Errno::ENOENT)
from /Users/bunn/.fastlane/bin/bundle/lib/ruby/2.2.0/digest.rb:49:in `open'
from /Users/bunn/.fastlane/bin/bundle/lib/ruby/2.2.0/digest.rb:49:in `file'
from /Users/bunn/.fastlane/bin/bundle/lib/ruby/2.2.0/digest.rb:34:in `file'
from /Users/bunn/.fastlane/bin/bundle/lib/ruby/gems/2.2.0/gems/fastlane-2.23.0/gym/lib/gym/xcodebuild_fixes/package_application_fix.rb:23:in `block in patch_package_application'
from /Users/bunn/.fastlane/bin/bundle/lib/ruby/2.2.0/tmpdir.rb:88:in `mktmpdir'
from /Users/bunn/.fastlane/bin/bundle/lib/ruby/gems/2.2.0/gems/fastlane-2.23.0/gym/lib/gym/xcodebuild_fixes/package_application_fix.rb:13:in `patch_package_application'
from /Users/bunn/.fastlane/bin/bundle/lib/ruby/gems/2.2.0/gems/fastlane-2.23.0/gym/lib/gym/generators/package_command_generator_legacy.rb:16:in `generate'
from /Users/bunn/.fastlane/bin/bundle/lib/ruby/gems/2.2.0/gems/fastlane-2.23.0/gym/lib/gym/generators/package_command_generator.rb:16:in `generate'
from /Users/bunn/.fastlane/bin/bundle/lib/ruby/gems/2.2.0/gems/fastlane-2.23.0/gym/lib/gym/runner.rb:121:in `package_app'
from /Users/bunn/.fastlane/bin/bundle/lib/ruby/gems/2.2.0/gems/fastlane-2.23.0/gym/lib/gym/runner.rb:19:in `run'
from /Users/bunn/.fastlane/bin/bundle/lib/ruby/gems/2.2.0/gems/fastlane-2.23.0/gym/lib/gym/manager.rb:14:in `work'
from /Users/bunn/.fastlane/bin/bundle/lib/ruby/gems/2.2.0/gems/fastlane-2.23.0/fastlane/lib/fastlane/actions/gym.rb:21:in `run'
from /Users/bunn/.fastlane/bin/bundle/lib/ruby/gems/2.2.0/gems/fastlane-2.23.0/fastlane/lib/fastlane/runner.rb:252:in `block (2 levels) in execute_action'
from /Users/bunn/.fastlane/bin/bundle/lib/ruby/gems/2.2.0/gems/fastlane-2.23.0/fastlane/lib/fastlane/actions/actions_helper.rb:50:in `execute_action'
from /Users/bunn/.fastlane/bin/bundle/lib/ruby/gems/2.2.0/gems/fastlane-2.23.0/fastlane/lib/fastlane/runner.rb:230:in `block in execute_action'
from /Users/bunn/.fastlane/bin/bundle/lib/ruby/gems/2.2.0/gems/fastlane-2.23.0/fastlane/lib/fastlane/runner.rb:226:in `chdir'
from /Users/bunn/.fastlane/bin/bundle/lib/ruby/gems/2.2.0/gems/fastlane-2.23.0/fastlane/lib/fastlane/runner.rb:226:in `execute_action'
from /Users/bunn/.fastlane/bin/bundle/lib/ruby/gems/2.2.0/gems/fastlane-2.23.0/fastlane/lib/fastlane/runner.rb:148:in `trigger_action_by_name'
from /Users/bunn/.fastlane/bin/bundle/lib/ruby/gems/2.2.0/gems/fastlane-2.23.0/fastlane/lib/fastlane/fast_file.rb:146:in `method_missing'
from Fastfile:16:in `block (2 levels) in parsing_binding'
from /Users/bunn/.fastlane/bin/bundle/lib/ruby/gems/2.2.0/gems/fastlane-2.23.0/fastlane/lib/fastlane/lane.rb:33:in `call'
from /Users/bunn/.fastlane/bin/bundle/lib/ruby/gems/2.2.0/gems/fastlane-2.23.0/fastlane/lib/fastlane/lane.rb:33:in `call'
from /Users/bunn/.fastlane/bin/bundle/lib/ruby/gems/2.2.0/gems/fastlane-2.23.0/fastlane/lib/fastlane/runner.rb:49:in `block in execute'
from /Users/bunn/.fastlane/bin/bundle/lib/ruby/gems/2.2.0/gems/fastlane-2.23.0/fastlane/lib/fastlane/runner.rb:45:in `chdir'
from /Users/bunn/.fastlane/bin/bundle/lib/ruby/gems/2.2.0/gems/fastlane-2.23.0/fastlane/lib/fastlane/runner.rb:45:in `execute'
from /Users/bunn/.fastlane/bin/bundle/lib/ruby/gems/2.2.0/gems/fastlane-2.23.0/fastlane/lib/fastlane/lane_manager.rb:52:in `cruise_lane'
from /Users/bunn/.fastlane/bin/bundle/lib/ruby/gems/2.2.0/gems/fastlane-2.23.0/fastlane/lib/fastlane/command_line_handler.rb:30:in `handle'
from /Users/bunn/.fastlane/bin/bundle/lib/ruby/gems/2.2.0/gems/fastlane-2.23.0/fastlane/lib/fastlane/commands_generator.rb:104:in `block (2 levels) in run'
from /Users/bunn/.fastlane/bin/bundle/lib/ruby/gems/2.2.0/gems/commander-fastlane-4.4.4/lib/commander/command.rb:178:in `call'
from /Users/bunn/.fastlane/bin/bundle/lib/ruby/gems/2.2.0/gems/commander-fastlane-4.4.4/lib/commander/command.rb:178:in `call'
from /Users/bunn/.fastlane/bin/bundle/lib/ruby/gems/2.2.0/gems/commander-fastlane-4.4.4/lib/commander/command.rb:153:in `run'
from /Users/bunn/.fastlane/bin/bundle/lib/ruby/gems/2.2.0/gems/commander-fastlane-4.4.4/lib/commander/runner.rb:476:in `run_active_command'
from /Users/bunn/.fastlane/bin/bundle/lib/ruby/gems/2.2.0/gems/fastlane-2.23.0/fastlane_core/lib/fastlane_core/ui/fastlane_runner.rb:38:in `run!'
from /Users/bunn/.fastlane/bin/bundle/lib/ruby/gems/2.2.0/gems/commander-fastlane-4.4.4/lib/commander/delegates.rb:15:in `run!'
from /Users/bunn/.fastlane/bin/bundle/lib/ruby/gems/2.2.0/gems/fastlane-2.23.0/fastlane/lib/fastlane/commands_generator.rb:303:in `run'
from /Users/bunn/.fastlane/bin/bundle/lib/ruby/gems/2.2.0/gems/fastlane-2.23.0/fastlane/lib/fastlane/commands_generator.rb:42:in `start'
from /Users/bunn/.fastlane/bin/bundle/lib/ruby/gems/2.2.0/gems/fastlane-2.23.0/fastlane/lib/fastlane/cli_tools_distributor.rb:65:in `take_off'
from /Users/bunn/.fastlane/bin/bundle/lib/ruby/gems/2.2.0/gems/fastlane-2.23.0/bin/fastlane:20:in `<top (required)>'
from /Users/bunn/.fastlane/bin/bundle/bin/fastlane:22:in `load'
from /Users/bunn/.fastlane/bin/bundle/bin/fastlane:22:in `<main>'
[INSERT OUTPUT HERE]
Environment
| Key | Value |
| --------------------------- | ------------------------------------------- |
| OS | 10.12.4 |
| Ruby | 2.2.4 |
| Bundler? | false |
| Git | git version 2.11.0 (Apple Git-81) |
| Installation Source | ~/.fastlane/bin/bundle/bin/fastlane |
| Host | Mac OS X 10.12.4 (16E195) |
| Ruby Lib Dir | ~/.fastlane/bin/bundle/lib |
| OpenSSL Version | OpenSSL 1.0.2g 1 Mar 2016 |
| Is contained | false |
| Is homebrew | true |
| Is installed via Fabric.app | false |
| Xcode Path | /Applications/Xcode.app/Contents/Developer/ |
| Xcode Version | 8.3 |
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Reactions: 4
- Comments: 19 (6 by maintainers)
Hey @Bunn, thanks for submitting this issue. Do you have the legacy build API enabled? If so, can you try disabling it?
Hey everyone, sorry for jumping in so late, I had to do some investigations before replying π
Unfortunately the legacy build API was removed with Xcode 8.3. Please make sure to remove
use_legacy_build_api
from your./fastlane/Fastfile
and update thegym
call to include the export method like this:App Store Builds
Ad Hoc Builds
Development Builds
In-House Enterprise Builds
What to do if you run into code signing errors?
If you run into a code signing error, please check out our troubleshooting guide and common issue and how to solve them.
If that still doesnβt help please submit a new issue instead of replying to this one. Make sure to share your
fastlane env
output when doing so, and mention that you followed all steps in the linked docs.I hope that helps, please let me know if the documentation is unclear, or if there is anything else we can do better π
@WANGjieJacques I was seeing a similar error when building against an enterprise profile with Xcode 8.3 after removing the legacy build api setting. The solution was to add
export_method: "enterprise"
to the gym invocation.Hi, @KrauseFx, I have the same error, after I disabled the legacy build API, I have an other error.
Error Domain=IDECodesignResolverErrorDomain Code=5 "No matching provisioning profiles found" UserInfo={NSLocalizedRecoverySuggestion=No provisioning profiles with a valid signing identity (i.e. certificate and private key pair) matching the bundle identifier \U201xxxxxxx.xx.xx.x\U201d were found., NSLocalizedDescription=No matching provisioning profiles found, IDECodesignResolverError_ResolutionInputsKey=<IDECodesignResolutionInputs: 0x7fa774391160; portalTeamID=βxxxxβ, usingTeamBasedSigning=βNOβ, bundleIdentifier=βxx.xx.xx.x.xtβ, targetName=β(null)β, provisioningProfilePurpose=β1β, requiresProvisioningProfile=βYESβ, provisioningProfilePlatform=βiOSβ, certificateKind=β1.2.840.113635.100.6.1.4β, requiredEntitlements=β{\n "aps-environment" = development;\n "beta-reports-active" = 1;\n "keychain-access-groups" = (\n "9SP4AKXQTU.com.thanksys.fidcashx.user"\n );\n}β, requiredCodesignableDevices=β(null)β, requiredFeatures=β(null)β>\n}"; };
and it works when I use Xcode 8.2, legacy API.