Titanium JIRA Archive
Appcelerator Community (AC)

[AC-2076] Titanium Mobile fails to build to iPhone Device

GitHub Issuen/a
TypeBug
Priorityn/a
StatusClosed
ResolutionNeeds more info
Resolution Date2013-03-22T16:26:10.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsStudio, Titanium SDK & CLI
LabelsSDK, build, error, ios, mobile
ReporterColton Arabsky
AssigneeDavide Cassenti
Created2013-03-21T23:58:21.000+0000
Updated2016-03-08T07:41:02.000+0000

Description

Build the project for device testing, Titanium Studio errors with the following:
[ERROR] :  ** BUILD FAILED **
[ERROR] :  The following build commands failed:
[ERROR] :  	CompileC Classes/ApplicationRouting.m normal armv7 objective-c com.apple.compilers.llvm.clang.1_0.compiler
[ERROR] :  (1 failure)
I turned on Trace and got the following errors:
[TRACE] :  /Users/coltonarabsky/Documents/App Development/Titanium Studio Workspace/MyProject/build/iphone/Classes/ApplicationRouting.m:4792:2: error: unexpected interface name 'NSNumber': expected expression
[TRACE] :          NSNumber *index = [map objectForKey:path];
[TRACE] :          ^
[TRACE] :  /Users/coltonarabsky/Documents/App Development/Titanium Studio Workspace/MyProject/build/iphone/Classes/ApplicationRouting.m:4792:21: error: use of undeclared identifier 'map'
[TRACE] :          NSNumber *index = [map objectForKey:path];
[TRACE] :                             ^
[TRACE] :  /Users/coltonarabsky/Documents/App Development/Titanium Studio Workspace/MyProject/build/iphone/Classes/ApplicationRouting.m:4797:5: error: expected ';' at end of declaration
[TRACE] :  @end
[TRACE] :      ^
[TRACE] :      ;
[TRACE] :  /Users/coltonarabsky/Documents/App Development/Titanium Studio Workspace/MyProject/build/iphone/Classes/ApplicationRouting.m:4797:5: error: expected '}'
[TRACE] :  /Users/coltonarabsky/Documents/App Development/Titanium Studio Workspace/MyProject/build/iphone/Classes/ApplicationRouting.m:18:1: note: to match this '{'
[TRACE] :  {
[TRACE] :  ^
[TRACE] :  /Users/coltonarabsky/Documents/App Development/Titanium Studio Workspace/MyProject/build/iphone/Classes/ApplicationRouting.m:4797:5: error: missing '@end'
[TRACE] :  @end
[TRACE] :      ^
[TRACE] :  /Users/coltonarabsky/Documents/App Development/Titanium Studio Workspace/MyProject/build/iphone/Classes/ApplicationRouting.m:15:1: note: implementation started here
[TRACE] :  @implementation ApplicationRouting
[TRACE] :  ^
[TRACE] :  5 errors generated.

Comments

  1. Davide Cassenti 2013-03-22

    Hello, Can you please post more information about your project? Does it happpen with an empty project as well? Are you using Studio?
  2. Shak Hossain 2013-12-09

    Since We have not heard back from you in a while, we are not sure if you still get the error you reported. The associated platform bug TiMOB-13984 has been fixed. Therefore, we believe your issue might be fixed as well. If not, please send us details so that we can take next necessary step to fix.

JSON Source