[TIMOB-24160] Hyperloop: iOS - Exclude CocoaPods products from being removed
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Critical |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2016-11-21T19:51:32.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Hyperloop 2.0.1, Hyperloop 2.2.0 |
Components | Hyperloop |
Labels | cocoapods, hyperloop, qe-hyperloop |
Reporter | Jan Vennemann |
Assignee | Jan Vennemann |
Created | 2016-11-21T12:25:47.000+0000 |
Updated | 2017-01-06T17:52:09.000+0000 |
Description
In TIMOB-24057 the output directory for built CocoaPods products was changed. This introduced a regression with sequential builds. The
build.ios.removeFiles
hook deletes files from the iOS build directory that were not previously unmarked with unmarkBuildDirFile
. The CocoaPods libraries need to be explicitly unmarked so they won't get deleted during this hook.
*Steps to reproduce the behavior*
1. Create a new Hyperloop enabled project or use the hyperloop-examples project
2. Make sure the build dir is clean by either deleting it or running appc ti clean
3. Build the project with appc run -p ios
4. Re-run the build again
*Expected behavior*
Able to successfully run subsequent builds
*Actual behavior*
The build fails due to missing libraries during linking
[TRACE] ld: library not found for -lGLCalendarView
[TRACE] clang: error: linker command failed with exit code 1 (use -v to see invocation)
[ERROR] ** BUILD FAILED **
[ERROR] The following build commands failed:
[ERROR] Ld build/Products/Debug-iphonesimulator/Hyperloop_Sample.app/Hyperloop_Sample normal x86_64
[ERROR] (1 failure)
PR (master): https://github.com/appcelerator/hyperloop.next/pull/102 PR (2_0_X): https://github.com/appcelerator/hyperloop.next/pull/103
PR's merged. Please update the Beta-releases on the Github page accordingly.
Verified as fixed, Subsequential builds are now successful. Tested on: {noformat} macOS Sierra 10.12.2 iPhone 6 iOS simulator (10.2, 10.0) Ti SDK: 6.1.0.v20170104172642 Hyperloop: 2.0.1 Appc CLI: 6.1.0 Appc NPM: 4.2.8 Node v4.6.0 {noformat} *Closing Ticket.*