Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-27097] iOS: Incremental builds fail to install app when using dynamic frameworks

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2019-08-28T22:58:12.000+0000
Affected Version/sRelease 8.0.1
Fix Version/sRelease 8.1.1
ComponentsiOS
Labelsn/a
ReporterJan Vennemann
AssigneeJan Vennemann
Created2019-05-22T21:17:24.000+0000
Updated2019-08-28T22:58:12.000+0000

Description

If a framework contains .png or .plist files our build will try to optimize those. Xcode will update code signing on the first build but fails to do so on subsequent builds. Frameworks should be left untouched to avoid this issue. *Steps to reproduce the behavior*

Place any framework containing PNG files into platform/ios (https://github.com/cjwirth/RichEditorView for example)

Build and run the app for device

Repeat!

*Actual behavior* On incremental builds the app fails to install with the following error:
[ERROR] An error occurred during build after 6s 579ms
[ERROR] Failed to install app on device (0xe8008001)
[ERROR] For some reason the app failed to install on the device. Try reconnecting your device and check your provisioning profile and entitlements.
*Expected behavior* The app can be installed as usual even on subsequent builds.

Comments

  1. Jan Vennemann 2019-05-22

    https://github.com/appcelerator/titanium_mobile/pull/10905
  2. Satyam Sekhri 2019-07-09

    FR Passed. The project with a framework having png/plist files builds successfully each time.
  3. Christopher Williams 2019-07-16

    Note that this was merged to master (for 8.2.0), but the PR is still up for 8.1.1 (and I assume is awaiting the 8.1.0 release going out first).
  4. Abir Mukherjee 2019-08-19

    [~lchoudhary] per [~cwilliams] comment, the merge to 8_1_X was waiting for 8.1.0 to go out, can this one be merged to 8_1_X now?
  5. Lokesh Choudhary 2019-08-20

    [~ssekhri], Can you please look at this for 8.1.1.
  6. Satyam Sekhri 2019-08-20

    8_1_X PR: https://github.com/appcelerator/titanium_mobile/pull/10996
  7. Satyam Sekhri 2019-08-20

    FR Passed for 8_1_X PR. The project with a framework having png/plist files builds successfully each time.
  8. Satyam Sekhri 2019-08-28

    Verified on: Mac OS 10.14.6 Ti SDK: 8.1.1.v20190828100656, 8.2.0.v20190828134315, 8.3.0.v20190828100616 Appc CLI: 7.1.1-5 Node: 10.5.0 JDK: 10.0.2 Xcode: 10.1 Studio: 5.1.3.201907112159 Device: iPhone 7Plus(v12.3)

JSON Source