[TIMOB-27783] iOS: Compiling app with watchOS app included forces rebuild every time
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Critical |
Status | Open |
Resolution | Unresolved |
Affected Version/s | Release 9.0.0, Release 8.3.1 |
Fix Version/s | n/a |
Components | iOS |
Labels | n/a |
Reporter | Hans Knöchel |
Assignee | Unknown |
Created | 2020-02-28T20:10:44.000+0000 |
Updated | 2020-05-27T15:42:32.000+0000 |
Description
Compiling an iOS app with a watchOS app included forces a full rebuild every time. The reason is a file which seems to be either rewritten every time or not properly added to the build index:
[INFO] Forcing rebuild: build/iphone/extensions/MyAppWatchApp/WatchApp/WatchApp.entitlements has changed since last build
I quickly tried to reproduce by doing a sim and device build, but I don't see any entitlements file in my watch app or ext directory (in the build dir). Does your watch app have its own custom entitlements file? I'm curious if you could make a backup of that file, run another build, then diff the two to see what changed. Maybe a timestamp?
Hi Chris, sorry for the delayed reply! It's the same file, but it seems like the build flushes / rewrites it to disk. I think you also have access to our project on Github, so could you maybe try it out there? It becomes worse every day with incremental builds being broken, so I hope this can be prioritized at some point. Thank you!
There is a simple workaround for now: Make sure that your .
entitlements
files *DO NOT* contain new lines at the end. Xcode may add them automatically after you edit the file. Just remove them with another Editor and the incremental build is happy again.