Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-23705] Hyperloop - creating APPC.JS on new projects causes build to fail

GitHub Issuen/a
TypeBug
PriorityCritical
StatusClosed
ResolutionInvalid
Resolution Date2016-08-24T01:30:31.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsHyperloop
Labelsbuild, hyperloop, ios
ReporterRodolfo Perottoni
AssigneeEric Merriman
Created2016-07-29T01:09:15.000+0000
Updated2017-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)

Comments

  1. Hans Knöchel 2016-07-29

    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!
  2. Rodolfo Perottoni 2016-07-31

    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.
  3. Hans Knöchel 2016-08-01

    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.
  4. Rodolfo Perottoni 2016-08-03

    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...
       [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]         CompileC build/Intermediates/loopmodules-charts.build/Debug-iphonesimulator/loopmodules-charts.build/Objects-normal/i386/TiUIiPhoneScrollIndicatorStyleProxy.o Classes/TiUIiPhoneScrollIndicatorStyleProxy.m normal i386 objective-c com.apple.compilers.llvm.clang.1_0.compiler
       [ERROR] (2 failures)
       
  5. Chee Kiat Ng 2016-08-03

    [~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
  6. Rodolfo Perottoni 2016-08-03

    @Chee Kiat Ng i figured out where the problem is coming from! I've created the *appc.js* file with this content:
       /**
        * Hyperloop configuration
        */
       module.exports = {
       	type: 'app',
       	group: 'titanium',
       	dependencies: {
       	},
       	hyperloop: {
       		ios: {
       			xcodebuild: { flags: {}, frameworks: ['Charts'] },
       			thirdparty: { 'MyFramework': { source: ['src'], header: 'src', resource: 'src'	}}
       		}
       	}
       };
       
    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.
  7. Rodolfo Perottoni 2016-08-03

    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
  8. Rodolfo Perottoni 2016-08-03

    XCode version: 7.3.1
  9. Rodolfo Perottoni 2016-08-19

  10. Chee Kiat Ng 2016-08-22

    [~rdperottoni] So is this ticket resolved and fixed by your linked ticket?
  11. Rodolfo Perottoni 2016-08-24

    Yep. Please close this one as it's not valid anymore. Thanks.
  12. Lee Morris 2017-03-24

    Closing ticket as invalid with reference to the above comments.

JSON Source