lucaspbordignon/rn-apple-healthkit

Build failing due to Manifest.lock Podfile.lock mismatch

dkarp0 opened this issue · 1 comments

Getting this error while building with xcodebuild. Using release 0.7.2v.

I've tried bundle exec pod install and removing my Podfile.lock with no luck so far. Any idea what might be causing this?

I was thinking that maybe PODFILE CHECKSUM: 239bd95cf3943e5b4c39aa6e03f66eabb1a7d796 is wrong, but honestly I don't know too much about how Cocoapods works.

▸ Check Dependencies
▸ Running script '[CP] Check Pods Manifest.lock'

❌  error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.


** BUILD FAILED **


The following build commands failed:
	PhaseScriptExecution [CP]\ Check\ Pods\ Manifest.lock /Users/danielkarpinski/Projects/vinehealth.mobileapp.mvp/ios/build/Build/Intermediates.noindex/RCTAppleHealthKit.build/Debug-iphonesimulator/RCTAppleHealthKit.build/Script-4827C5812AF01D94AD806134.sh
(1 failure)
detox[9395] ERROR: [cli.js] Error: Command failed: xcodebuild -workspace ./ios/app.xcworkspace -scheme app -configuration Debug -sdk iphonesimulator -derivedDataPath ios/build

Adding the following in my package.json fixed the issue for me as there is a Podfile and now it generates the Podfile.lock and Manifest.lock. It's a hack but works:

  "scripts": {
    "postinstall": "npx jetify && cd node_modules/rn-apple-healthkit/ && pod install || true"
  },

npx jetify was already there, but the pod install step solved this issue