2

PS: I can use Xcode to build the version successfully.

I got the similar error when use codemagic. unable-to-load-contents-of-file-.

enter image description here

After made the changed mentioned in the above link.

I got build error in codemagic, but didn't should any message releated to build error.

enter image description here

Mikhail Tokarev
  • 2,843
  • 1
  • 14
  • 35
JerryZhou
  • 4,566
  • 3
  • 37
  • 60
  • it's related to `pod` – JerryZhou Jul 05 '19 at 06:10
  • And latest build have error of : `[!] The version of CocoaPods used to generate the lockfile (1.7.2) is higher than the version of the current executable (1.6.1). Incompatibility issues may arise`. – JerryZhou Jul 05 '19 at 06:10
  • do you have custom script to update Cocoapods and execute `pod update`? – Mikhail Tokarev Jul 09 '19 at 14:11
  • @MikhailTokarev , hi , this bug is caused by I didn't select latest Xcode(10.2) in codemagic setting. After I change the Xcode version in codemagic setting. it's fixed. – JerryZhou Jul 10 '19 at 03:53

1 Answers1

2

you can try to update your pods to match the new version or downgrade pods with the following custom script:

#!/bin/sh

set -e    # exit on first failed command
set -x  # print all executed commands to the terminal
yes | gem uninstall cocoapods -v 1.7.2 || true
gem install cocoapods -v 1.6.1

One tip to show more logs is to enter -v or --verbose to build arguments in the build section.