Remove build phase script “[CP] Check Pods Manifest.lock”
In our company, sometimes we found a problem that our build phase script "[CP] Check Pods Manifest.lock"
got timeout in CircleCI
, without clear reason.
Then, we decide to “remove” that script from our xcodeproject
, because we think that we don't need that "extra step" to make sure our installed pods is the correct ones. We thought our current setup of Cocoapods
is already good.
Btw, this are our setup of Cocoapods
, in our iOS App:
- Commit
Podfile
with declare exact version for it's library - Git ignore the
Podfile.lock
- Git ignore the folder
Pods
- Always do
pod install
in the beginning (before compiling the app)
I think we’ll need that script if we’re not doing step 2 and 3.
Then, how we do it (removing the build phase script)? We do that by this script, that called in Fastlane.
You can also remove it by using Podfile
, in step post_integrate
, like this:
Why we need to do it via script? Because:
- if we do it manually, the script will always appear again after
pod install
- we don’t commit the
xcodeproject
And this is the result:
Our build success compiled. Since this is still an experiment, I’ll updating this post whenever something unnecessary happened.