Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to rebuild development pod changes?

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.

like image 835
Gikas Avatar asked May 27 '18 13:05

Gikas


People also ask

How do I update my development pod?

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.

What does POD Deintegrate do?

pod deintegrate and pod clean are two designated commands to remove CocoaPod from your project/repo.

How do you update pods in Xcode?

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*.


2 Answers

I'm using to below.

Product -> Schemes -> EditScheme -> Build -> Add a development Pods ("+" sign)
like image 89
won Avatar answered Oct 20 '22 12:10

won


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.

like image 50
Ahti Avatar answered Oct 20 '22 10:10

Ahti