iOS Archive Fail

iOS Archive

Description of the issue

The xcode-archive step always fail beacause of a missing Pod.
The cocoa pod command runs without any issue, but in the step Genrating Pod Projetcs, one of my pods is missing (KeychainSwift).
Those are my declared pods (copy past from the logs):

  • AFNetworking
  • Crashlytics
  • Fabric
  • IQKeyboardManagerSwift
  • KeychainSwift
  • SWRevealViewController
  • SwiftyJSON

This is the step of generating pods projects :
Generating Pods project

  • Creating Pods project
  • Adding source files to Pods project
  • Adding frameworks to Pods project
  • Adding libraries to Pods project
  • Adding resources to Pods project
  • Linking headers
  • Installing targets
    • Installing target AFNetworking iOS 8.0
      • Generating Info.plist file at Pods/Target Support Files/AFNetworking/Info.plist
      • Generating module map file at Pods/Target Support Files/AFNetworking/AFNetworking.modulemap
      • Generating umbrella header at Pods/Target Support Files/AFNetworking/AFNetworking-umbrella.h
    • Installing target IQKeyboardManagerSwift iOS 8.0
      • Generating Info.plist file at Pods/Target Support Files/IQKeyboardManagerSwift/Info.plist
      • Generating module map file at Pods/Target Support Files/IQKeyboardManagerSwift/IQKeyboardManagerSwift.modulemap
      • Generating umbrella header at Pods/Target Support Files/IQKeyboardManagerSwift/IQKeyboardManagerSwift-umbrella.h
    • Installing target SWRevealViewController iOS 8.0
      • Generating Info.plist file at Pods/Target Support Files/SWRevealViewController/Info.plist
      • Generating module map file at Pods/Target Support Files/SWRevealViewController/SWRevealViewController.modulemap
      • Generating umbrella header at Pods/Target Support Files/SWRevealViewController/SWRevealViewController-umbrella.h
    • Installing target SwiftyJSON iOS 8.0
      • Generating Info.plist file at Pods/Target Support Files/SwiftyJSON/Info.plist
      • Generating module map file at Pods/Target Support Files/SwiftyJSON/SwiftyJSON.modulemap
      • Generating umbrella header at Pods/Target Support Files/SwiftyJSON/SwiftyJSON-umbrella.h
    • Installing target Pods-amant iOS 8.0
      • Generating Info.plist file at Pods/Target Support Files/Pods-amant/Info.plist
      • Generating module map file at Pods/Target Support Files/Pods-amant/Pods-amant.modulemap
      • Generating umbrella header at Pods/Target Support Files/Pods-amant/Pods-amant-umbrella.h
  • Running post install hooks
  • Writing Xcode project file to Pods/Pods.xcodeproj
    • Generating deterministic UUIDs
  • Writing Lockfile in Podfile.lock
  • Writing Manifest in Pods/Manifest.lock

The primary workflow builds without any issue.
The deploy workflow always fails.

Environment:

Where did the issue happen?

If on Bitrise.io: which stack? If not on Bitrise.io: on what operating system? (Plus any other information you can share)
On bitrise.io, Stack Xcode 8.3.x, on macOS 10.12 (Sierra)
Which build Step causes the issue and which version of the step?
id: xcode-archive | version: 2.1.1

Reproducibility

  • Does a “Rebuild” help? (You can trigger a rebuild from the Build’s page, by clicking the “Rebuild” button in the top right corner of a finished build) : NO
  • Does a rebuild without caches help? (You can remove the Cache:Pull and Cache:Push steps temporarily to not to use the cache, or you can delete all the caches on the Settings tab of the app. : NO
  • If you have multiple different build configurations (workflows), does the issue affect all/more than one? : NO only the deploy workflow
  • If it’s an issue which happens sporadically, what’s the frequency? (e.g. Once a day ; about x% of the builds) :
  • Does upgrading the build Step to the latest version help? : NO
  • When did the issue start? : Never worked, on build creation.

Other stacks

Can it be reproduced by running the build locally with our CLI ( https://www.bitrise.io/cli ), after doing a new git clone of the repository into the /tmp directory and running the build from there with the Bitrise CLI ( https://www.bitrise.io/cli )? NO

Build log

Please attach the build log (you can download the build log from the build’s page, once the build is finished, using the “Download log” button - floating at the bottom right corner of the log viewer), or if you can’t attach the whole log then send the full log through a private channel (e.g. email - https://www.bitrise.io/contact ), with a link to the related GitHub issue.

Thanks for reporting @MacaronApp - we’ll look into this asap!
Can you please share the whole failing log here, or if it contains private infos, you can contact us through the on-site chat.

1 Like

Based on the on-site chat the issue was related to cocoapods:

‘pod install didn’t download the source code for KeychainSwift , migrating to KeychainSwiftWrapper solved the issue’