[TIMOB-23705] Hyperloop - creating APPC.JS on new projects causes build to fail
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Critical |
Status | Closed |
Resolution | Invalid |
Resolution Date | 2016-08-24T01:30:31.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | Hyperloop |
Labels | build, hyperloop, ios |
Reporter | Rodolfo Perottoni |
Assignee | Eric Merriman |
Created | 2016-07-29T01:09:15.000+0000 |
Updated | 2017-03-24T18:01:35.000+0000 |
Description
*Steps to reproduce*:
1. Create new hyperloop enabled project.
2. Change SDK to 5.4.0.v20160727143921 (latest on build server).
3. Create dummy *appc.js* file in the project's root folder:
module.exports = {
type: 'app',
group: 'titanium',
dependencies: { },
hyperloop: {
ios: {
xcodebuild: { flags: {}, frameworks: [] },
thirdparty: {
'MyFramework': { source: ['src'], header: 'src', resource: 'src' }
}
}
}
};
4. Create "src" folder in the project's root folder.
5. Try and build project. It will crash with the following:
[INFO] Invoking xcodebuild
[ERROR] ** BUILD FAILED **
[ERROR] The following build commands failed:
[ERROR] CompileC build/Intermediates/loopmodules-charts.build/Debug-iphonesimulator/loopmodules-charts.build/Objects-normal/i386/TiFile.o Classes/TiFile.m normal i386 objective-c com.apple.compilers.llvm.clang.1_0.compiler
[ERROR] (1 failure)
Sometimes that error changes. If i keep trying to build the project sometimes i will get this:
[ERROR] The following build commands failed:
[ERROR] CompileC build/Intermediates/Hyperloop_Sample.build/Debug-iphonesimulator/Hyperloop_Sample.build/Objects-normal/i386/TiUITableViewAction.o Classes/TiUITableViewAction.m normal i386 objective-c com.apple.compilers.llvm.clang.1_0.compiler
[ERROR] CompileC build/Intermediates/Hyperloop_Sample.build/Debug-iphonesimulator/Hyperloop_Sample.build/Objects-normal/i386/TiFile.o Classes/TiFile.m normal i386 objective-c com.apple.compilers.llvm.clang.1_0.compiler
[ERROR] CompileC build/Intermediates/Hyperloop_Sample.build/Debug-iphonesimulator/Hyperloop_Sample.build/Objects-normal/i386/TiUIiPhoneScrollIndicatorStyleProxy.o Classes/TiUIiPhoneScrollIndicatorStyleProxy.m normal i386 objective-c com.apple.compilers.llvm.clang.1_0.compiler
[ERROR] (3 failures)
The build only fails sometimes? Anything reproducible? We need at least the full trace-log to track down the exact error causing the build to fail. Thanks!
It fails everytime. Even if the *appc.js* points to no third party frameworks or has no build flags, etc. I can get you the full log tomorrow at my workplace's computer.
It may be fixed with [this commit](https://github.com/appcelerator/titanium_mobile/pull/8177) that fixed a common build-issue on 5.4.0 and master. Please try with the latest one.
Hey @Hans Knoechel, i've tried running an app again with the *appc.js* file placed on its root folder with the latest SDK. I still got the same error...
[~rdperottoni] Still not too sure about why this error is happening but, can you put your Xcode version info here? Please note that: Our latest master branch will only work with Xcode 8 beta and Xcode 8 GA when it's released. Our 5.4.0 only works with Xcode 7.X
@Chee Kiat Ng i figured out where the problem is coming from! I've created the *appc.js* file with this content:
Note: My "src" folder is empty. If i build my project i'm getting the error as you can see in the attached *build_iphone.log* file. When i delete the *thirdparty* property my project builds just fine.
Mmmm... i can't add attachments anymore. I've uploaded the log in this text sharing website i just found: http://kl1p.com/build_iphone_log
XCode version: 7.3.1
[~rdperottoni] So is this ticket resolved and fixed by your linked ticket?
Yep. Please close this one as it's not valid anymore. Thanks.
Closing ticket as invalid with reference to the above comments.