Changes in library’s file are not compiled until doing a clean build

Number:rdar://41126633 Date Originated:2018-06-14
Status:Open Resolved:
Product:Developer Tools Product Version:Xcode 10 / 11b1
Classification:Severe Reproducible:Always
We have a project structure where we have a library included via cocoapods as a so-called development-pod. Whenever changes are made in a file inside the library they are not re-compiled when building our app. Only a clean build helps to make changes available in the app.

Steps to Reproduce:
Have a project setup similar to our (see the attached example project).
Open the attached workspace and run the app. You will notice a crash on viewDidLoad() of the ViewController. There you will see further instructions to experience the issue. For completeness here they are again:
* Run the app
* Experience a fatal error
* Remove the line where the fatal error is created
* Run the app again (NO clean build)
* Observe that the app will still be terminated by the fatal error you just removed
* Do a clean build to finally get rid of the fatal error

Expected Results:
* App does not crash anymore after removing the fatalError from the library

Actual Results:
* App still crashes because of that fatalError
* Breakpoints don’t work either because the source you see and the compiled one are not the same anymore

Xcode 10.0 Beta (10L176w)

Project with cocoapods integration of self-owned library.


still open and valid on Xcode 11B4 , Wasted two hours wondering what was wrong

Still open and still valid. Last tested on Xcode 11b1 where the suggested build setting from the beta changelog didn’t have any effect.

By maxkattner at June 20, 2019, 3:53 p.m. (reply...)

This issue occurs without CocoaPods for any script phase that depends on folders for input or output paths.

Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!