I have a development pod that I connect to the my app locally using :path => '~/Projects/Swift/pod'
. When I make changes inside the application code in that development pod, this changes are not included after build. It's like I'm build cached code, not my code changes.
For include code changes into build I have to run the command "Clean Build Folder", but after that build takes a very long time, for 10 minutes, which is not very productive.
Literally, I comment on a line of code and wait 10 minutes to see the changes.
What is the problem?
I was trying to run "pod install/pod update" after any changes, but it has no effect.
Use pod install to install new pods in your project. Even if you already have a Podfile and ran pod install before; so even if you are just adding/removing pods to a project already using CocoaPods. Use pod update [PODNAME] only when you want to update pods to a newer version.
pod deintegrate and pod clean are two designated commands to remove CocoaPod from your project/repo.
Sometimes people suggest deleting the /Pods directory and the Podfile. lock file, then running pod install . This will solve any issues with Xcode, but will also upgrade each of the pods in the Podfile to its latest version*.
I'm using to below.
Product -> Schemes -> EditScheme -> Build -> Add a development Pods ("+" sign)
I had the same issue with Xcode 10.0 (10A255). Changing back to the legacy build system (in File -> Project/Workspace Settings) worked for me to resolve the issue for now, until this is fixed by either Cocoapds or Xcode.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With