Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-28130] Xcode 12: Incremental builds not working

GitHub Issuen/a
TypeBug
PriorityCritical
StatusClosed
ResolutionFixed
Resolution Date2020-09-16T13:04:10.000+0000
Affected Version/sRelease 9.2.0
Fix Version/sRelease 9.2.0
ComponentsiOS
Labelsn/a
ReporterHans Knöchel
AssigneeEwan Harris
Created2020-09-13T19:43:40.000+0000
Updated2020-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.

Comments

  1. Ewan Harris 2020-09-14

    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 removed
  2. Ewan Harris 2020-09-14

    PR: https://github.com/appcelerator/titanium_mobile/pull/12046
  3. Samir Mohammed 2020-09-15

    FR Passed, waiting on Jenkins build and Ports.
  4. Samir Mohammed 2020-09-16

    *Closing ticket*. Fix verified in SDK version 9.2.0.v20200915123928, and 9.3.0.v20200915132757. *Test and other information can be found at:* https://github.com/appcelerator/titanium_mobile/pull/12046

JSON Source