bitrise-steplib / steps-xcode-archive

Xcode Archive for iOS step
MIT License
68 stars 56 forks source link

Xcode Archive & Export for iOS failed with bundle install failed for Xcode 14.x on M1 #321

Closed abekerau closed 1 year ago

abekerau commented 1 year ago

Troubleshooting

Useful information

Issue description

So due to the migration of Intel workflows to M1 machines there was a problem with bundle install: In Gemfile: fastlane was resolved to 2.212.1, which depends on json

Screenshot 2023-05-31 at 15 08 00

And the end:

Screenshot 2023-05-31 at 15 08 09

There is our Gem File:

source "http://rubygems.org"
gem 'json', '2.3.0'
gem 'dnssd', '3.0.2', path: './Gems/dnssd'
gem "cocoapods", "1.12.0"
gem "frank-cucumber", "1.1.6" 
gem "rake", "~>10.0"
gem "xml-simple", "1.0.12"
gem 'builder', '3.1.3'
gem 'rest-client', '1.6.7'
gem 'rake_release', path: './Gems/rake_release'
gem 'rake_xcode', path: './Gems/rake_xcode' 
gem 'rspec-support', '3.1.2'
gem 'rspec-core', '3.1.7'
gem 'rspec-expectations', '3.1.2'
gem 'rspec-mocks', '3.1.3'
gem 'rspec', '3.1.0'`

Bitrise info

 Failed to execute Step main logic:
  failed to manage code signing: failed to initialize Apple ID client: bundle install failed: Fetching gem metadata from https://rubygems.org/........
  Resolving dependencies...
  Fetching rake 13.0.6
  Installing rake 13.0.6
  Using rexml 3.2.5
  Fetching public_suffix 5.0.1
  Using artifactory 3.0.15
  Using atomos 0.1.3
  Using aws-eventstream 1.2.0
  Using jmespath 1.6.2
  Using babosa 1.0.4
  Using bundler 2.2.24
  Using claide 1.1.0
  Using colored 1.2
  Using colored2 3.1.2
  Using highline 2.0.3
  Using declarative 0.0.20
  Using digest-crc 0.6.4
  Using unf_ext 0.0.8.2
  Using dotenv 2.8.1
  Using emoji_regex 3.2.3
  Using excon 0.99.0
  Using faraday-em_http 1.0.0
  Using faraday-em_synchrony 1.0.0
  Using faraday-excon 1.1.0
  Using faraday-httpclient 1.0.1
  Fetching aws-partitions 1.716.0
  Using multipart-post 2.0.0
  Using faraday-net_http 1.0.1
  Using faraday-net_http_persistent 1.2.0
  Using faraday-patron 1.0.0
  Using faraday-rack 1.0.0
  Using faraday-retry 1.0.3
  Using ruby2_keywords 0.0.5
  Using fastimage 2.2.6
  Using gh_inspector 1.1.3
  Using jwt 2.7.0
  Using memoist 0.16.2
  Using multi_json 1.15.0
  Using os 1.1.4
  Using httpclient 2.8.3
  Using mini_mime 1.1.2
  Using trailblazer-option 0.1.2
  Using uber 0.1.0
  Using retriable 3.1.2
  Fetching json 2.6.3
  Using mini_magick 4.12.0
  Fetching google-cloud-errors 1.3.0
  Fetching webrick 1.8.1
  Using naturally 2.2.1
  Using optparse 0.1.1
  Using plist 3.7.0
  Using rubyzip 2.3.2
  Using security 0.1.3
  Using terminal-notifier 2.0.0
  Using unicode-display_width 1.8.0
  Using tty-screen 0.8.1
  Using tty-cursor 0.7.1
  Using word_wrap 1.0.0
  Using nanaimo 0.3.0
  Using rouge 2.0.7
  Using CFPropertyList 3.0.6
  Using faraday-multipart 1.0.4
  Using commander 4.6.0
  Using terminal-table 1.8.0
  Using tty-spinner 0.9.3
  Using xcpretty 0.3.0
  Using aws-sigv4 1.5.2
  Using unf 0.1.4
  Using faraday 1.10.3
  Using representable 3.2.0
  Using simctl 1.6.10
  Using xcodeproj 1.22.0
  Using xcpretty-travis-formatter 1.0.1
  Using domain_name 0.5.20190701
  Using faraday_middleware 1.2.0
  Using google-cloud-env 1.6.0
  Using http-cookie 1.0.5
  Using faraday-cookie_jar 0.0.7
  Installing public_suffix 5.0.1
  Installing aws-partitions 1.716.0
  Installing google-cloud-errors 1.3.0
  Installing json 2.6.3 with native extensions
  Installing webrick 1.8.1
  Using google-cloud-core 1.6.0
  Fetching aws-sdk-core 3.170.0
  Installing aws-sdk-core 3.170.0
  Fetching aws-sdk-kms 1.62.0
  Fetching addressable 2.8.1
  Installing addressable 2.8.1
  Installing aws-sdk-kms 1.62.0
  Using signet 0.17.0
  Fetching googleauth 1.3.0
  Fetching aws-sdk-s3 1.119.1
  Installing googleauth 1.3.0
  Using google-apis-core 0.11.0
  Using google-apis-playcustomapp_v1 0.13.0
  Using google-apis-iamcredentials_v1 0.17.0
  Using google-apis-storage_v1 0.19.0
  Using google-cloud-storage 1.44.0
  Fetching google-apis-androidpublisher_v3 0.34.0
  Installing aws-sdk-s3 1.119.1
  Installing google-apis-androidpublisher_v3 0.34.0
  Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
  current directory:
  /Users/[REDACTED]/.rbenv/versions/2.7.6/lib/ruby/gems/2.7.0/gems/json-2.6.3/ext/json/ext/generator
  /Users/[REDACTED]/.rbenv/versions/2.7.6/bin/ruby -I
  /Users/[REDACTED]/.rbenv/versions/2.7.6/lib/ruby/2.7.0 -r
  ./siteconf20230530-12578-1cz2nmi.rb extconf.rb
  creating Makefile
  current directory:
  /Users/[REDACTED]/.rbenv/versions/2.7.6/lib/ruby/gems/2.7.0/gems/json-2.6.3/ext/json/ext/generator
  make "DESTDIR=" clean
  current directory:
  /Users/[REDACTED]/.rbenv/versions/2.7.6/lib/ruby/gems/2.7.0/gems/json-2.6.3/ext/json/ext/generator
  make "DESTDIR="
  compiling generator.c
  linking shared-object json/ext/generator.bundle
  ld: warning: directory not found for option '-L/opt/homebrew/opt/php@7.4/lib'
  ld: warning: directory not found for option '-L/opt/homebrew/opt/php@7.4/lib'
  ld: warning: ignoring file
  /Users/[REDACTED]/.rbenv/versions/2.7.6/lib/libruby.2.7.dylib, building for
  macOS-x86_64 but attempting to link with file built for macOS-arm64
  Undefined symbols for architecture x86_64:
  "_rb_ary_entry", referenced from:
  _cState_to_h in generator.o
  _generate_json_array in generator.o
  "_rb_attr_get", referenced from:
  _cState_aref in generator.o
  "_rb_cArray", referenced from:
  _generate_json in generator.o
  "_rb_cFalseClass", referenced from:
  _generate_json in generator.o
  _json_object_i in generator.o
  "_rb_cFloat", referenced from:
  _generate_json in generator.o
  _json_object_i in generator.o
  "_rb_cHash", referenced from:
  _cState_from_state_s in generator.o
  _mObject_to_json in generator.o
  _mHash_to_json in generator.o
  _mArray_to_json in generator.o
  _mInteger_to_json in generator.o
  _mFloat_to_json in generator.o
  _mString_to_json in generator.o
  ...
  "_rb_cInteger", referenced from:
  _generate_json in generator.o
  _json_object_i in generator.o
  "_rb_cNilClass", referenced from:
  _generate_json in generator.o
  _json_object_i in generator.o
  "_rb_cObject", referenced from:
  _Init_generator in generator.o
  "_rb_cString", referenced from:
  _generate_json in generator.o
  _json_object_i in generator.o
  "_rb_cSymbol", referenced from:
  _generate_json in generator.o
  _json_object_i in generator.o
  "_rb_cTrueClass", referenced from:
  _generate_json in generator.o
  _json_object_i in generator.o
  "_rb_check_convert_type", referenced from:
  _cState_configure in generator.o
  "_rb_check_type", referenced from:
  _cState_indent_set in generator.o
  _cState_space_set in generator.o
  _cState_space_before_set in generator.o
  _cState_object_nl_set in generator.o
  _cState_array_nl_set in generator.o
  _cState_max_nesting_set in generator.o
  _cState_depth_set in generator.o
  ...
  "_rb_check_typeddata", referenced from:
  _cState_initialize in generator.o
  _cState_init_copy in generator.o
  _cState_indent in generator.o
  _cState_indent_set in generator.o
  _cState_space in generator.o
  _cState_space_set in generator.o
  _cState_space_before in generator.o
  ...
  "_rb_class_name", referenced from:
  _mString_to_json_raw_object in generator.o
  "_rb_class_new_instance", referenced from:
  _cState_from_state_s in generator.o
  _mObject_to_json in generator.o
  _mHash_to_json in generator.o
  _mArray_to_json in generator.o
  _mInteger_to_json in generator.o
  _mFloat_to_json in generator.o
  _mString_to_json in generator.o
  ...
  "_rb_convert_type", referenced from:
  _cState_configure in generator.o
  "_rb_data_typed_object_zalloc", referenced from:
  _cState_s_allocate in generator.o
  "_rb_define_alias", referenced from:
  _Init_generator in generator.o
  "_rb_define_alloc_func", referenced from:
  _Init_generator in generator.o
  "_rb_define_class_under", referenced from:
  _Init_generator in generator.o
  "_rb_define_method", referenced from:
  _Init_generator in generator.o
  "_rb_define_module", referenced from:
  _Init_generator in generator.o
  "_rb_define_module_under", referenced from:
  _Init_generator in generator.o
  "_rb_define_singleton_method", referenced from:
  _Init_generator in generator.o
  "_rb_eArgError", referenced from:
  _cState_init_copy in generator.o
  "_rb_empty_keyword_given_p", referenced from:
  _cState_initialize in generator.o
  _mObject_to_json in generator.o
  _mHash_to_json in generator.o
  _mArray_to_json in generator.o
  _mInteger_to_json in generator.o
  _mFloat_to_json in generator.o
  _mString_to_json in generator.o
  ...
  "_rb_enc_associate", referenced from:
  _mHash_to_json in generator.o
  _mArray_to_json in generator.o
  _mInteger_to_json in generator.o
  _mFloat_to_json in generator.o
  _mString_to_json in generator.o
  _mTrueClass_to_json in generator.o
  _mFalseClass_to_json in generator.o
  ...
  "_rb_enc_get", referenced from:
  _generate_json_string in generator.o
  "_rb_enc_str_asciionly_p", referenced from:
  _generate_json_string in generator.o
  "_rb_error_arity", referenced from:
  _cState_initialize in generator.o
  _mObject_to_json in generator.o
  _mHash_to_json in generator.o
  _mArray_to_json in generator.o
  _mInteger_to_json in generator.o
  _mFloat_to_json in generator.o
  _mString_to_json in generator.o
  ...
  "_rb_float_value", referenced from:
  _generate_json_float in generator.o
  "_rb_funcallv", referenced from:
  _cState_from_state_s in generator.o
  _cState_configure in generator.o
  _cState_to_h in generator.o
  _cState_aref in generator.o
  _cState_aset in generator.o
  _mObject_to_json in generator.o
  _mHash_to_json in generator.o
  ...
  "_rb_gc_register_mark_object", referenced from:
  _Init_generator in generator.o
  "_rb_hash_aref", referenced from:
  _cState_configure in generator.o
  _mString_Extend_json_create in generator.o
  "_rb_hash_aset", referenced from:
  _cState_to_h in generator.o
  _mString_to_json_raw_object in generator.o
  "_rb_hash_foreach", referenced from:
  _generate_json_object in generator.o
  "_rb_hash_new", referenced from:
  _cState_to_h in generator.o
  _mString_to_json_raw_object in generator.o
  "_rb_id2str", referenced from:
  _json_object_i in generator.o
  "_rb_id2sym", referenced from:
  _cState_configure in generator.o
  _cState_to_h in generator.o
  "_rb_intern", referenced from:
  _Init_generator in generator.o
  "_rb_intern2", referenced from:
  _cState_to_h in generator.o
  "_rb_iv_get", referenced from:
  _cState_to_h in generator.o
  "_rb_ivar_set", referenced from:
  _cState_aset in generator.o
  "_rb_keyword_given_p", referenced from:
  _cState_initialize in generator.o
  _mObject_to_json in generator.o
  _mHash_to_json in generator.o
  _mArray_to_json in generator.o
  _mInteger_to_json in generator.o
  _mFloat_to_json in generator.o
  _mString_to_json in generator.o
  ...
  "_rb_obj_class", referenced from:
  _mString_to_json_raw_object in generator.o
  "_rb_obj_is_kind_of", referenced from:
  _cState_from_state_s in generator.o
  _mObject_to_json in generator.o
  _mHash_to_json in generator.o
  _mArray_to_json in generator.o
  _mInteger_to_json in generator.o
  _mFloat_to_json in generator.o
  _mString_to_json in generator.o
  ...
  "_rb_path2class", referenced from:
  _Init_generator in generator.o
  _generate_json_string in generator.o
  "_rb_raise", referenced from:
  _cState_init_copy in generator.o
  _generate_json_object in generator.o
  _generate_json_array in generator.o
  _generate_json_string in generator.o
  _generate_json_float in generator.o
  "_rb_require", referenced from:
  _Init_generator in generator.o
  "_rb_respond_to", referenced from:
  _generate_json in generator.o
  "_rb_str_cat", referenced from:
  _cState_aset in generator.o
  "_rb_str_concat", referenced from:
  _cState_aref in generator.o
  _cState_aset in generator.o
  "_rb_str_dup", referenced from:
  _cState_aset in generator.o
  "_rb_str_export_to_enc", referenced from:
  _generate_json_string in generator.o
  "_rb_str_intern", referenced from:
  _cState_to_h in generator.o
  _cState_aref in generator.o
  _cState_aset in generator.o
  "_rb_str_new", referenced from:
  _cState_indent in generator.o
  _cState_space in generator.o
  _cState_space_before in generator.o
  _cState_object_nl in generator.o
  _cState_array_nl in generator.o
  _cState_to_h in generator.o
  _mHash_to_json in generator.o
  ...
  "_rb_str_new_static", referenced from:
  _cState_indent in generator.o
  _cState_space in generator.o
  _cState_space_before in generator.o
  _cState_object_nl in generator.o
  _cState_array_nl in generator.o
  _cState_aref in generator.o
  _cState_aset in generator.o
  ...
  "_rb_str_substr", referenced from:
  _cState_to_h in generator.o
  "_rb_string_value_cstr", referenced from:
  _cState_to_h in generator.o
  "_rb_string_value_ptr", referenced from:
  _mInteger_to_json in generator.o
  _generate_json in generator.o
  _generate_json_float in generator.o
  "_rb_sym2id", referenced from:
  _cState_aref in generator.o
  _cState_aset in generator.o
  _json_object_i in generator.o
  "_rb_usascii_encoding", referenced from:
  _generate_json_string in generator.o
  "_rb_utf8_encoding", referenced from:
  _mHash_to_json in generator.o
  _mArray_to_json in generator.o
  _mInteger_to_json in generator.o
  _mFloat_to_json in generator.o
  _mString_to_json in generator.o
  _mTrueClass_to_json in generator.o
  _mFalseClass_to_json in generator.o
  ...
  "_ruby_xfree", referenced from:
  _cState_indent_set in generator.o
  _cState_space_set in generator.o
  _cState_space_before_set in generator.o
  _cState_object_nl_set in generator.o
  _cState_array_nl_set in generator.o
  _mHash_to_json in generator.o
  _mArray_to_json in generator.o
  ...
  "_ruby_xmalloc", referenced from:
  _fbuffer_dup in generator.o
  _cState_prepare_buffer in generator.o
  "_ruby_xmalloc2", referenced from:
  _cState_init_copy in generator.o
  _cState_indent_set in generator.o
  _cState_space_set in generator.o
  _cState_space_before_set in generator.o
  _cState_object_nl_set in generator.o
  _cState_array_nl_set in generator.o
  _cState_configure in generator.o
  ...
  "_ruby_xrealloc2", referenced from:
  _mInteger_to_json in generator.o
  _mTrueClass_to_json in generator.o
  _mFalseClass_to_json in generator.o
  _mNilClass_to_json in generator.o
  _fbuffer_dup in generator.o
  _cState_prepare_buffer in generator.o
  _generate_json in generator.o
  ...
  ld: symbol(s) not found for architecture x86_64
  clang: error: linker command failed with exit code 1 (use -v to see invocation)
  make: *** [generator.bundle] Error 1
  make failed, exit code 2
  Gem files will remain installed in
  /Users/[REDACTED]/.rbenv/versions/2.7.6/lib/ruby/gems/2.7.0/gems/json-2.6.3 for
  inspection.
  Results logged to
  /Users/[REDACTED]/.rbenv/versions/2.7.6/lib/ruby/gems/2.7.0/extensions/arm64-darwin-21/2.7.0/json-2.6.3/gem_make.out
  An error occurred while installing json (2.6.3), and Bundler cannot continue.
  Make sure that `gem install json -v '2.6.3' --source 'https://rubygems.org/'`
  succeeds before bundling.
  In Gemfile:
  fastlane was resolved to 2.212.1, which depends on
  json

Exporting outputs...
Failed to execute Step main logic:
  failed to manage code signing: failed to initialize Apple ID client: bundle install failed: Fetching gem metadata from https://rubygems.org/........
  Resolving dependencies...
  Fetching rake 13.0.6
  Installing rake 13.0.6
  Using rexml 3.2.5
  Fetching public_suffix 5.0.1
  Using artifactory 3.0.15
  Using atomos 0.1.3
  Using aws-eventstream 1.2.0
  Using jmespath 1.6.2
  Using babosa 1.0.4
  Using bundler 2.2.24
  Using claide 1.1.0
  Using colored 1.2
  Using colored2 3.1.2
  Using highline 2.0.3
  Using declarative 0.0.20
  Using digest-crc 0.6.4
  Using unf_ext 0.0.8.2
  Using dotenv 2.8.1
  Using emoji_regex 3.2.3
  Using excon 0.99.0
  Using faraday-em_http 1.0.0
  Using faraday-em_synchrony 1.0.0
  Using faraday-excon 1.1.0
  Using faraday-httpclient 1.0.1
  Fetching aws-partitions 1.716.0
  Using multipart-post 2.0.0
  Using faraday-net_http 1.0.1
  Using faraday-net_http_persistent 1.2.0
  Using faraday-patron 1.0.0
  Using faraday-rack 1.0.0
  Using faraday-retry 1.0.3
  Using ruby2_keywords 0.0.5
  Using fastimage 2.2.6
  Using gh_inspector 1.1.3
  Using jwt 2.7.0
  Using memoist 0.16.2
  Using multi_json 1.15.0
  Using os 1.1.4
  Using httpclient 2.8.3
  Using mini_mime 1.1.2
  Using trailblazer-option 0.1.2
  Using uber 0.1.0
  Using retriable 3.1.2
  Fetching json 2.6.3
  Using mini_magick 4.12.0
  Fetching google-cloud-errors 1.3.0
  Fetching webrick 1.8.1
  Using naturally 2.2.1
  Using optparse 0.1.1
  Using plist 3.7.0
  Using rubyzip 2.3.2
  Using security 0.1.3
  Using terminal-notifier 2.0.0
  Using unicode-display_width 1.8.0
  Using tty-screen 0.8.1
  Using tty-cursor 0.7.1
  Using word_wrap 1.0.0
  Using nanaimo 0.3.0
  Using rouge 2.0.7
  Using CFPropertyList 3.0.6
  Using faraday-multipart 1.0.4
  Using commander 4.6.0
  Using terminal-table 1.8.0
  Using tty-spinner 0.9.3
  Using xcpretty 0.3.0
  Using aws-sigv4 1.5.2
  Using unf 0.1.4
  Using faraday 1.10.3
  Using representable 3.2.0
  Using simctl 1.6.10
  Using xcodeproj 1.22.0
  Using xcpretty-travis-formatter 1.0.1
  Using domain_name 0.5.20190701
  Using faraday_middleware 1.2.0
  Using google-cloud-env 1.6.0
  Using http-cookie 1.0.5
  Using faraday-cookie_jar 0.0.7
  Installing public_suffix 5.0.1
  Installing aws-partitions 1.716.0
  Installing google-cloud-errors 1.3.0
  Installing json 2.6.3 with native extensions
  Installing webrick 1.8.1
  Using google-cloud-core 1.6.0
  Fetching aws-sdk-core 3.170.0
  Installing aws-sdk-core 3.170.0
  Fetching aws-sdk-kms 1.62.0
  Fetching addressable 2.8.1
  Installing addressable 2.8.1
  Installing aws-sdk-kms 1.62.0
  Using signet 0.17.0
  Fetching googleauth 1.3.0
  Fetching aws-sdk-s3 1.119.1
  Installing googleauth 1.3.0
  Using google-apis-core 0.11.0
  Using google-apis-playcustomapp_v1 0.13.0
  Using google-apis-iamcredentials_v1 0.17.0
  Using google-apis-storage_v1 0.19.0
  Using google-cloud-storage 1.44.0
  Fetching google-apis-androidpublisher_v3 0.34.0
  Installing aws-sdk-s3 1.119.1
  Installing google-apis-androidpublisher_v3 0.34.0
  Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
  current directory:
  /Users/[REDACTED]/.rbenv/versions/2.7.6/lib/ruby/gems/2.7.0/gems/json-2.6.3/ext/json/ext/generator
  /Users/[REDACTED]/.rbenv/versions/2.7.6/bin/ruby -I
  /Users/[REDACTED]/.rbenv/versions/2.7.6/lib/ruby/2.7.0 -r
  ./siteconf20230530-12578-1cz2nmi.rb extconf.rb
  creating Makefile
  current directory:
  /Users/[REDACTED]/.rbenv/versions/2.7.6/lib/ruby/gems/2.7.0/gems/json-2.6.3/ext/json/ext/generator
  make "DESTDIR=" clean
  current directory:
  /Users/[REDACTED]/.rbenv/versions/2.7.6/lib/ruby/gems/2.7.0/gems/json-2.6.3/ext/json/ext/generator
  make "DESTDIR="
  compiling generator.c
  linking shared-object json/ext/generator.bundle
  ld: warning: directory not found for option '-L/opt/homebrew/opt/php@7.4/lib'
  ld: warning: directory not found for option '-L/opt/homebrew/opt/php@7.4/lib'
  ld: warning: ignoring file
  /Users/[REDACTED]/.rbenv/versions/2.7.6/lib/libruby.2.7.dylib, building for
  macOS-x86_64 but attempting to link with file built for macOS-arm64
  Undefined symbols for architecture x86_64:
  "_rb_ary_entry", referenced from:
  _cState_to_h in generator.o
  _generate_json_array in generator.o
  "_rb_attr_get", referenced from:
  _cState_aref in generator.o
  "_rb_cArray", referenced from:
  _generate_json in generator.o
  "_rb_cFalseClass", referenced from:
  _generate_json in generator.o
  _json_object_i in generator.o
  "_rb_cFloat", referenced from:
  _generate_json in generator.o
  _json_object_i in generator.o
  "_rb_cHash", referenced from:
  _cState_from_state_s in generator.o
  _mObject_to_json in generator.o
  _mHash_to_json in generator.o
  _mArray_to_json in generator.o
  _mInteger_to_json in generator.o
  _mFloat_to_json in generator.o
  _mString_to_json in generator.o
  ...
  "_rb_cInteger", referenced from:
  _generate_json in generator.o
  _json_object_i in generator.o
  "_rb_cNilClass", referenced from:
  _generate_json in generator.o
  _json_object_i in generator.o
  "_rb_cObject", referenced from:
  _Init_generator in generator.o
  "_rb_cString", referenced from:
  _generate_json in generator.o
  _json_object_i in generator.o
  "_rb_cSymbol", referenced from:
  _generate_json in generator.o
  _json_object_i in generator.o
  "_rb_cTrueClass", referenced from:
  _generate_json in generator.o
  _json_object_i in generator.o
  "_rb_check_convert_type", referenced from:
  _cState_configure in generator.o
  "_rb_check_type", referenced from:
  _cState_indent_set in generator.o
  _cState_space_set in generator.o
  _cState_space_before_set in generator.o
  _cState_object_nl_set in generator.o
  _cState_array_nl_set in generator.o
  _cState_max_nesting_set in generator.o
  _cState_depth_set in generator.o
  ...
  "_rb_check_typeddata", referenced from:
  _cState_initialize in generator.o
  _cState_init_copy in generator.o
  _cState_indent in generator.o
  _cState_indent_set in generator.o
  _cState_space in generator.o
  _cState_space_set in generator.o
  _cState_space_before in generator.o
  ...
  "_rb_class_name", referenced from:
  _mString_to_json_raw_object in generator.o
  "_rb_class_new_instance", referenced from:
  _cState_from_state_s in generator.o
  _mObject_to_json in generator.o
  _mHash_to_json in generator.o
  _mArray_to_json in generator.o
  _mInteger_to_json in generator.o
  _mFloat_to_json in generator.o
  _mString_to_json in generator.o
  ...
  "_rb_convert_type", referenced from:
  _cState_configure in generator.o
  "_rb_data_typed_object_zalloc", referenced from:
  _cState_s_allocate in generator.o
  "_rb_define_alias", referenced from:
  _Init_generator in generator.o
  "_rb_define_alloc_func", referenced from:
  _Init_generator in generator.o
  "_rb_define_class_under", referenced from:
  _Init_generator in generator.o
  "_rb_define_method", referenced from:
  _Init_generator in generator.o
  "_rb_define_module", referenced from:
  _Init_generator in generator.o
  "_rb_define_module_under", referenced from:
  _Init_generator in generator.o
  "_rb_define_singleton_method", referenced from:
  _Init_generator in generator.o
  "_rb_eArgError", referenced from:
  _cState_init_copy in generator.o
  "_rb_empty_keyword_given_p", referenced from:
  _cState_initialize in generator.o
  _mObject_to_json in generator.o
  _mHash_to_json in generator.o
  _mArray_to_json in generator.o
  _mInteger_to_json in generator.o
  _mFloat_to_json in generator.o
  _mString_to_json in generator.o
  ...
  "_rb_enc_associate", referenced from:
  _mHash_to_json in generator.o
  _mArray_to_json in generator.o
  _mInteger_to_json in generator.o
  _mFloat_to_json in generator.o
  _mString_to_json in generator.o
  _mTrueClass_to_json in generator.o
  _mFalseClass_to_json in generator.o
  ...
  "_rb_enc_get", referenced from:
  _generate_json_string in generator.o
  "_rb_enc_str_asciionly_p", referenced from:
  _generate_json_string in generator.o
  "_rb_error_arity", referenced from:
  _cState_initialize in generator.o
  _mObject_to_json in generator.o
  _mHash_to_json in generator.o
  _mArray_to_json in generator.o
  _mInteger_to_json in generator.o
  _mFloat_to_json in generator.o
  _mString_to_json in generator.o
  ...
  "_rb_float_value", referenced from:
  _generate_json_float in generator.o
  "_rb_funcallv", referenced from:
  _cState_from_state_s in generator.o
  _cState_configure in generator.o
  _cState_to_h in generator.o
  _cState_aref in generator.o
  _cState_aset in generator.o
  _mObject_to_json in generator.o
  _mHash_to_json in generator.o
  ...
  "_rb_gc_register_mark_object", referenced from:
  _Init_generator in generator.o
  "_rb_hash_aref", referenced from:
  _cState_configure in generator.o
  _mString_Extend_json_create in generator.o
  "_rb_hash_aset", referenced from:
  _cState_to_h in generator.o
  _mString_to_json_raw_object in generator.o
  "_rb_hash_foreach", referenced from:
  _generate_json_object in generator.o
  "_rb_hash_new", referenced from:
  _cState_to_h in generator.o
  _mString_to_json_raw_object in generator.o
  "_rb_id2str", referenced from:
  _json_object_i in generator.o
  "_rb_id2sym", referenced from:
  _cState_configure in generator.o
  _cState_to_h in generator.o
  "_rb_intern", referenced from:
  _Init_generator in generator.o
  "_rb_intern2", referenced from:
  _cState_to_h in generator.o
  "_rb_iv_get", referenced from:
  _cState_to_h in generator.o
  "_rb_ivar_set", referenced from:
  _cState_aset in generator.o
  "_rb_keyword_given_p", referenced from:
  _cState_initialize in generator.o
  _mObject_to_json in generator.o
  _mHash_to_json in generator.o
  _mArray_to_json in generator.o
  _mInteger_to_json in generator.o
  _mFloat_to_json in generator.o
  _mString_to_json in generator.o
  ...
  "_rb_obj_class", referenced from:
  _mString_to_json_raw_object in generator.o
  "_rb_obj_is_kind_of", referenced from:
  _cState_from_state_s in generator.o
  _mObject_to_json in generator.o
  _mHash_to_json in generator.o
  _mArray_to_json in generator.o
  _mInteger_to_json in generator.o
  _mFloat_to_json in generator.o
  _mString_to_json in generator.o
  ...
  "_rb_path2class", referenced from:
  _Init_generator in generator.o
  _generate_json_string in generator.o
  "_rb_raise", referenced from:
  _cState_init_copy in generator.o
  _generate_json_object in generator.o
  _generate_json_array in generator.o
  _generate_json_string in generator.o
  _generate_json_float in generator.o
  "_rb_require", referenced from:
  _Init_generator in generator.o
  "_rb_respond_to", referenced from:
  _generate_json in generator.o
  "_rb_str_cat", referenced from:
  _cState_aset in generator.o
  "_rb_str_concat", referenced from:
  _cState_aref in generator.o
  _cState_aset in generator.o
  "_rb_str_dup", referenced from:
  _cState_aset in generator.o
  "_rb_str_export_to_enc", referenced from:
  _generate_json_string in generator.o
  "_rb_str_intern", referenced from:
  _cState_to_h in generator.o
  _cState_aref in generator.o
  _cState_aset in generator.o
  "_rb_str_new", referenced from:
  _cState_indent in generator.o
  _cState_space in generator.o
  _cState_space_before in generator.o
  _cState_object_nl in generator.o
  _cState_array_nl in generator.o
  _cState_to_h in generator.o
  _mHash_to_json in generator.o
  ...
  "_rb_str_new_static", referenced from:
  _cState_indent in generator.o
  _cState_space in generator.o
  _cState_space_before in generator.o
  _cState_object_nl in generator.o
  _cState_array_nl in generator.o
  _cState_aref in generator.o
  _cState_aset in generator.o
  ...
  "_rb_str_substr", referenced from:
  _cState_to_h in generator.o
  "_rb_string_value_cstr", referenced from:
  _cState_to_h in generator.o
  "_rb_string_value_ptr", referenced from:
  _mInteger_to_json in generator.o
  _generate_json in generator.o
  _generate_json_float in generator.o
  "_rb_sym2id", referenced from:
  _cState_aref in generator.o
  _cState_aset in generator.o
  _json_object_i in generator.o
  "_rb_usascii_encoding", referenced from:
  _generate_json_string in generator.o
  "_rb_utf8_encoding", referenced from:
  _mHash_to_json in generator.o
  _mArray_to_json in generator.o
  _mInteger_to_json in generator.o
  _mFloat_to_json in generator.o
  _mString_to_json in generator.o
  _mTrueClass_to_json in generator.o
  _mFalseClass_to_json in generator.o
  ...
  "_ruby_xfree", referenced from:
  _cState_indent_set in generator.o
  _cState_space_set in generator.o
  _cState_space_before_set in generator.o
  _cState_object_nl_set in generator.o
  _cState_array_nl_set in generator.o
  _mHash_to_json in generator.o
  _mArray_to_json in generator.o
  ...
  "_ruby_xmalloc", referenced from:
  _fbuffer_dup in generator.o
  _cState_prepare_buffer in generator.o
  "_ruby_xmalloc2", referenced from:
  _cState_init_copy in generator.o
  _cState_indent_set in generator.o
  _cState_space_set in generator.o
  _cState_space_before_set in generator.o
  _cState_object_nl_set in generator.o
  _cState_array_nl_set in generator.o
  _cState_configure in generator.o
  ...
  "_ruby_xrealloc2", referenced from:
  _mInteger_to_json in generator.o
  _mTrueClass_to_json in generator.o
  _mFalseClass_to_json in generator.o
  _mNilClass_to_json in generator.o
  _fbuffer_dup in generator.o
  _cState_prepare_buffer in generator.o
  _generate_json in generator.o
  ...
  ld: symbol(s) not found for architecture x86_64
  clang: error: linker command failed with exit code 1 (use -v to see invocation)
  make: *** [generator.bundle] Error 1
  make failed, exit code 2
  Gem files will remain installed in
  /Users/[REDACTED]/.rbenv/versions/2.7.6/lib/ruby/gems/2.7.0/gems/json-2.6.3 for
  inspection.
  Results logged to
  /Users/[REDACTED]/.rbenv/versions/2.7.6/lib/ruby/gems/2.7.0/extensions/arm64-darwin-21/2.7.0/json-2.6.3/gem_make.out
  An error occurred while installing json (2.6.3), and Bundler cannot continue.
  Make sure that `gem install json -v '2.6.3' --source 'https://rubygems.org/'`
  succeeds before bundling.
  In Gemfile:
  fastlane was resolved to 2.212.1, which depends on
  json
  

Steps to reproduce

Run Xcode Archive & Export step

JackOddy commented 1 year ago

We believe we're seeing this error too, any thoughts or movement on this issue at all?

abekerau commented 1 year ago

@JackOddy Hi, it looks like we are stuck on this step, there is no progress on this issue.

niyogakiza commented 1 year ago

@abekerau I have fixed the above issue by selecting the warning banner on the bitrise, which took me to the section you see in the screenshot; then, I selected the M1 option and saved it. After that, all the builds were built successfully till now.

Screenshot 2023-06-06 at 17 21 55

abekerau commented 1 year ago

@abekerau I have fixed the above issue by selecting the warning banner on the bitrise, which took me to the section you see in the screenshot; then, I selected the M1 option and saved it. After that, all the builds were built successfully till now.

Screenshot 2023-06-06 at 17 21 55

@niyogakiza Yes, we followed the same way, and our stack switched to M1 (the build didn't work) and then switched to Rosetta 2 (the build didn't work). So I kept fixing this issue for the Bitrise build for Rosetta 2, because I don't have an M1 machine for local tests.

magneticrob commented 1 year ago

We're also stuck on the same step, same error, with Rosetta.

What's weird is our exact same commit works with a slightly different workflow - one that uploads to the app store via the api-key method than the apple-id method.

magneticrob commented 1 year ago

I fixed this by removing automatic code signing. If the workflow is using apple-id it will fail. If you're using api-key it'll work just fine.

Can someone at Bitrise (@tothszabi ?) update us here when you guys fix it on your end? Thanks!

scottymack commented 1 year ago

We're using an enterprise account, so we have to use apple-id. This is a blocker for us and we've had to revert back to manually managing code signing.