fastlane: [Regression] IPA is still not build

New Issue Checklist

Issue Description

I am still experiencing the issue described in #7494, #7526 and #7485 when running my build: No IPA is produced, this means the app is not packaged. This worked fine before with fastlane 1 and gym 1.12.1.

I drilled the problem down to the following place in fastlane-2.1.1/gym/lib/runner.rb:

 if Gym.project.ios? || Gym.project.tvos?
        fix_generic_archive # See https://github.com/fastlane/fastlane/pull/4325
        package_app if Gym.project.produces_archive?
        fix_package
        compress_and_move_dsym
        path = move_ipa if Gym.project.produces_archive?
        move_manifest
        move_app_thinning
        move_app_thinning_size_report
        move_apps_folder

Gym.project.produces_archive? is false in my case.

Complete output when running fastlane, including the stack trace and command used

Captured Output

Captured Output

Command Used: jenkins

Output/Log

[14:25:05]: -------------------------------------------------
[14:25:05]: --- Step: Verifying required fastlane version ---
[14:25:05]: -------------------------------------------------
[14:25:05]: Your fastlane version 2.1.1 matches the minimum requirement of 1.66.0  ✅
[14:25:05]: ------------------------------
[14:25:05]: --- Step: default_platform ---
[14:25:05]: ------------------------------
[14:25:05]: Driving the lane 'ios jenkins' 🚀
[14:25:05]: ---------------------------
[14:25:05]: --- Step: setup_jenkins ---
[14:25:05]: ---------------------------
[14:25:05]: Not executed by Continuous Integration system.
[14:25:05]: --------------------------------
[14:25:05]: --- Step: clear_derived_data ---
[14:25:05]: --------------------------------
[14:25:05]: Derived Data path located at: /Users/sandhaus/Library/Developer/Xcode/DerivedData
[14:25:07]: Successfully cleared Derived Data ♻️
[14:25:07]: -------------------
[14:25:07]: --- Step: match ---
[14:25:07]: -------------------
[14:25:08]: Successfully loaded '/Users/sandhaus/Documents/git-cewe/fotoplus-ios/fastlane/Matchfile' 📄

####### lines deleted #######

[14:29:27]: ▸ Copying cewe\ myPhotos-Info.plist
[14:29:27]: ▸ Copying Librarys/Quincy/Quincy.bundle
[14:29:27]: ▸ Copying Fotoplus-iOS/PhotoEffectProcessing/File
[14:29:27]: ▸ Copying Librarys/AdobeMobileLibrary/ADBMobileConfig.json
[14:29:27]: ▸ Compiling UploadMergeAlbumPrototypeCell.xib
[14:29:27]: ▸ Compiling CWDialogTableViewCell.xib
[14:29:27]: ▸ Compiling CWUIPhotoFilterPreviewCellCollectionViewCell.xib
[14:29:27]: ▸ Compiling CWPhotoAlbumDetailHeader.xib
[14:29:27]: ▸ Compiling Launch\ Screen.storyboard
[14:29:27]: ▸ Compiling CWMetaDataTableViewCell.xib
[14:29:27]: ▸ Compiling CWPhotoAlbumDetailViewPhotoCell.xib
[14:29:27]: ▸ Compiling VideoPlayer.storyboard
[14:29:28]: ▸ Compiling CWLoginCollectionViewCell.xib
[14:29:28]: ▸ Compiling CWPhotoAlbumPhotoViewCollectionViewCell.xib
[14:29:28]: ▸ Compiling CWStarRatingFilterView.xib
[14:29:28]: ▸ Compiling CloudCollectionViewPhotoCell.xib
[14:29:28]: ▸ Compiling AlbumMergeTableViewCell.xib
[14:29:28]: ▸ Compiling CWOnlineEditActionBar.xib
[14:29:28]: ▸ Compiling Login.storyboard
[14:29:29]: ▸ Compiling DialogsEdit.storyboard
[14:29:29]: ▸ Compiling CWPhotoEventEditingDialogViewController.xib
[14:29:38]: ▸ Compiling Dialogs.storyboard
[14:29:38]: ▸ Compiling Toolbar.storyboard
[14:29:38]: ▸ Compiling CWSharedPhotoAlbumEditActionBar.xib
[14:29:38]: ▸ Compiling CWTargetSelectionView.xib
[14:29:38]: ▸ Compiling DialogCoverPhoto.storyboard
[14:29:38]: ▸ Compiling CWPhotosImportProgressView.xib
[14:29:38]: ▸ Compiling CloudDownloadViewController.xib
[14:29:38]: ▸ Compiling CWOnlinePhotoAlbumEditActionBar.xib
[14:29:38]: ▸ Compiling CWTransferDetailTableViewHeader.xib
[14:29:38]: ▸ Compiling CWTransferTableHeaderView.xib
[14:29:38]: ▸ Compiling CWToolbarActionView.xib
[14:29:38]: ▸ Compiling CWToolbarActionViewOnlineDetailAlbum.xib
[14:29:38]: ▸ Compiling CWLocalEditActionBar.xib
[14:29:38]: ▸ Compiling Main_iPhone.storyboard
[14:29:47]: ▸ Compiling CWMyPhotosUploadMoveDialog.xib
[14:29:47]: ▸ Compiling CWTransferInfoView.xib
[14:29:47]: ▸ Compiling CWTransferDetailTableViewCell.xib
[14:29:47]: ▸ Copying Fotoplus-iOS/extern/perfectlyClear/create_fat_lib.txt
[14:29:47]: ▸ Copying FilterPresets.plist
[14:29:47]: ▸ Copying Fotoplus-iOS/extern/A2StoryboardSegueContext/README.md
[14:29:47]: ▸ Copying Fotoplus-iOS/privacyPolicy.html
[14:29:47]: ▸ Copying Fotoplus-iOS/termsAndConditions.html
[14:29:47]: ▸ Copying Localizable.strings
[14:29:47]: ▸ Copying Localizable.strings
[14:29:47]: ▸ Copying Localizable.strings
[14:29:47]: ▸ Copying InfoPlist.strings
[14:29:47]: ▸ Copying InfoPlist.strings
[14:29:47]: ▸ Copying Fotoplus-iOS/extern/A2StoryboardSegueContext/A2StoryboardSegueContext.podspec
[14:29:47]: ▸ Processing cewe myphotos-Info.plist
[14:29:47]: ▸ Generating 'cewe_myphotos.app.dSYM'
[14:29:50]: ▸ Running script 'Bump Build Version Script'
[14:29:50]: ▸ Running script '[CP] Embed Pods Frameworks'
[14:30:28]: ▸ Running script '[CP] Copy Pods Resources'
[14:30:28]: ▸ Touching cewe_myphotos.app
[14:30:43]: ▸ Signing /Users/sandhaus/Library/Developer/Xcode/DerivedData/cewe_myphotos-ewbohuvsuoggmbgpllltejoatosn/Build/Products/Jenkins-iphoneos/cewe_myphotos.app
[14:30:46]: ▸ Build Succeeded
[14:30:47]: Exporting Files:
[14:30:47]: 	 ▸ AFNetworkActivityLogger
[14:30:47]: 	 ▸ AFNetworking
[14:30:47]: 	 ▸ cewe_myphotos.app
[14:30:48]: 	 ▸ cewe_myphotos.app.dSYM
[14:30:48]: 	 ▸ CocoaLumberjack
[14:30:48]: 	 ▸ DateTools
[14:30:48]: 	 ▸ DKImagePickerController
[14:30:48]: 	 ▸ DZNEmptyDataSet
[14:30:48]: 	 ▸ ECSlidingViewController
[14:30:48]: 	 ▸ FCFileManager
[14:30:48]: 	 ▸ GPUImage
[14:30:48]: 	 ▸ Mantle
[14:30:48]: 	 ▸ NSLogger
[14:30:48]: 	 ▸ OCHamcrest
[14:30:48]: 	 ▸ OCMock
[14:30:48]: 	 ▸ OCMockito
[14:30:48]: 	 ▸ OHHTTPStubs
[14:30:48]: 	 ▸ OMGHTTPURLRQ
[14:30:48]: 	 ▸ Pods_cewe_foto_.framework
[14:30:48]: 	 ▸ Pods_cewe_foto_Tests.framework
[14:30:48]: 	 ▸ Pods_cewe_foto_UITests.framework
[14:30:48]: 	 ▸ PureLayout
[14:30:49]: 	 ▸ RXCollections
[14:30:49]: 	 ▸ SVProgressHUD
[14:30:49]: 	 ▸ TTTAttributedLabel
[14:30:49]: 	 ▸ UIDevice-Hardware
[14:30:49]: 	 ▸ include
[14:30:49]: 	 ▸ libi18n.a

+------+-------------------------------------+-------------+
|                     fastlane summary                     |
+------+-------------------------------------+-------------+
| Step | Action                              | Time (in s) |
+------+-------------------------------------+-------------+
| 1    | Verifying required fastlane version | 0           |
| 2    | default_platform                    | 0           |
| 3    | setup_jenkins                       | 0           |
| 4    | clear_derived_data                  | 2           |
| 5    | match                               | 23          |
| 6    | update_info_plist                   | 0           |
| 7    | get_version_number                  | 1           |
| 8    | cocoapods                           | 17          |
| 9    | gym                                 | 297         |
+------+-------------------------------------+-------------+

[14:30:49]: fastlane.tools just saved you 6 minutes! 🎉


✅ fastlane environment ✅

Stack

Key Value
OS 10.12.2
Ruby 2.3.3
Bundler? false
Git git version 2.10.1 (Apple Git-78)
Installation Source /usr/local/bin/fastlane
Host Mac OS X 10.12.2 (16C67)
Ruby Lib Dir /usr/local/Cellar/ruby/2.3.3/lib
OpenSSL Version OpenSSL 1.0.2j 26 Sep 2016
Is contained false
Xcode Path /Applications/Xcode.app/Contents/Developer/
Xcode Version 8.2

System Locale

Variable Value
LANG de_DE.UTF-8
LC_ALL
LANGUAGE

fastlane files:

`./fastlane/Fastfile`
fastlane_version "1.66.0"
default_platform :ios

platform :ios do
  
  desc "Build on Jenkins Buildserver"
  lane :jenkins do
    setup_jenkins
    clear_derived_data
    ENV["MATCH_FORCE_ENTERPRISE"] = "1"
    match(
      team_id:"### deleted ###",
      type:"enterprise",
      git_branch: "cewe_enterprise",
      app_identifier:"com.cewecolor.myphotos-beta",
      #force:true
    )
    
    update_info_plist(
      display_name: "[beta] cmp",
      plist_path: "Fotoplus-iOS/cewe myPhotos-Info.plist",
      xcodeproj: "Fotoplus-iOS/cewe foto+.xcodeproj"
    )
    current_date = Time.new.strftime("%Y.%m.%d")
    version = get_version_number(xcodeproj: "Fotoplus-iOS/cewe foto+.xcodeproj")
    cocoapods(podfile: "Fotoplus-iOS/Podfile")
    gym(
         scheme: "CeweMyphotosJenkins",
         clean: true,
         configuration: "Jenkins",
         workspace: "Fotoplus-iOS/cewe_myphotos.xcworkspace",
         export_method:  "enterprise",
         export_team_id: "### deleted ###",
         output_name: "cewemyphotos_#{version}_#{current_date}-develop")
  end
end

fastlane gems

Gem Version Update-Status
fastlane 2.1.1 ✅ Up-To-Date

Loaded fastlane plugins:

No plugins Loaded

Loaded gems
Gem Version
did_you_mean 1.0.2
slack-notifier 1.5.1
CFPropertyList 2.3.4
claide 1.0.1
colored 1.2
nanaimo 0.2.3
xcodeproj 1.4.1
rouge 1.11.1
xcpretty 0.2.4
terminal-notifier 1.7.1
plist 3.2.0
public_suffix 2.0.4
addressable 2.5.0
multipart-post 2.0.0
word_wrap 1.0.0
babosa 1.0.2
highline 1.7.8
commander 4.4.1
excon 0.54.0
faraday 0.10.0
unf_ext 0.0.7.2
unf 0.1.4
domain_name 0.5.20161129
http-cookie 1.0.3
faraday-cookie_jar 0.0.6
gh_inspector 1.0.2
uber 0.0.15
representable 2.3.0
retriable 2.1.0
mime-types-data 3.2016.0521
mime-types 3.1
hurley 0.2
little-plugger 1.1.4
multi_json 1.12.1
logging 2.1.0
jwt 1.5.6
memoist 0.15.0
os 0.9.6
signet 0.7.3
googleauth 0.5.1
httpclient 2.8.3
google-api-client 0.9.20
mini_magick 4.5.1
multi_xml 0.6.0
security 0.1.3
xcpretty-travis-formatter 0.0.4
dotenv 2.1.1
bundler 1.13.6
faraday_middleware 0.10.1
i18n 0.7.0
json 1.8.3
thread_safe 0.3.5
tzinfo 1.2.2
activesupport 4.2.7.1
io-console 0.4.6
rubyzip 1.2.0
unicode-display_width 1.1.2
terminal-table 1.7.3
fastimage 2.0.1
bigdecimal 1.2.8
psych 2.2.2
mini_portile2 2.1.0
nokogiri 1.6.8.1

generated on: 2016-12-19

About this issue

  • Original URL
  • State: closed
  • Created 8 years ago
  • Comments: 21 (2 by maintainers)

Most upvoted comments

Version 2.2.0 solves the problem for me!

@hugheba The problem is that fastlane/gym uses the first target on your scheme to build and on RN0.40+ is a new target called React. This target needs to build first because your main target depends on it (the breaking change is that now you import from <React/Dependency>). So I removed the target React from the scheme, by going on XCode -> Edit scheme -> Build and deleting It, so that gym finds my main target (make sure is the first target now). Then on my main target on XCode -> Build Phases -> Target Dependencies I added the React target as a dependency (explicit dependency now) and now It works! 😃