Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-27783] iOS: Compiling app with watchOS app included forces rebuild every time

GitHub Issuen/a
TypeBug
PriorityCritical
StatusOpen
ResolutionUnresolved
Affected Version/sRelease 9.0.0, Release 8.3.1
Fix Version/sn/a
ComponentsiOS
Labelsn/a
ReporterHans Knöchel
AssigneeUnknown
Created2020-02-28T20:10:44.000+0000
Updated2020-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

Comments

  1. Chris Barber 2020-02-28

    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?
  2. Hans Knöchel 2020-05-17

    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!
  3. Jan Vennemann 2020-05-27

    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.

JSON Source