[TIMOB-28130] Xcode 12: Incremental builds not working
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Critical |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2020-09-16T13:04:10.000+0000 |
Affected Version/s | Release 9.2.0 |
Fix Version/s | Release 9.2.0 |
Components | iOS |
Labels | n/a |
Reporter | Hans Knöchel |
Assignee | Ewan Harris |
Created | 2020-09-13T19:43:40.000+0000 |
Updated | 2020-09-16T13:04:10.000+0000 |
Description
There is an issue with incremental builds on Xcode 12 / iOS 14:
[TRACE] /myproject/build/iphone/Classes/TiUtils+Addons.swift:10:8: error: no such module 'TitaniumKit'
[TRACE] import TitaniumKit
[TRACE] ^
[...]
[ERROR] ** BUILD FAILED **
[ERROR] The following build commands failed:
[ERROR] CompileSwiftSources normal x86_64 com.apple.xcode.tools.swift.compiler
[ERROR] CompileSwift normal x86_64 /myproject/build/iphone/Classes/TiUtils+Addons.swift
[ERROR] (2 failures)
It seems like the new Swift support with TiUtils+Addons.swift
(TIMOB-28062) causes the issue. It may also affect iOS 13 / Xcode 11.x, but I haven't tested that, yet.
From the logs it appears that in the "Removing files" build stage we're nuking the Titanium.framework directory under
Products/Debug-iphoneos/
which is then causing this error. I guess we need to unmark the file so it doesn't get removedPR: https://github.com/appcelerator/titanium_mobile/pull/12046
FR Passed, waiting on Jenkins build and Ports.
*Closing ticket*. Fix verified in SDK version
9.2.0.v20200915123928
, and9.3.0.v20200915132757
. *Test and other information can be found at:* https://github.com/appcelerator/titanium_mobile/pull/12046