Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-17623] iOS8: Cannot build an app for device/simulator once it has been built if the project name has a space

GitHub Issuen/a
TypeBug
PriorityCritical
StatusClosed
ResolutionDuplicate
Resolution Date2014-09-08T18:21:12.000+0000
Affected Version/sRelease 3.4.0
Fix Version/sn/a
ComponentsiOS
Labelsios8, qe-3.4.0
ReporterEwan Harris
AssigneeChris Barber
Created2014-09-04T20:04:39.000+0000
Updated2017-03-22T22:05:29.000+0000

Description

Description

When trying to build an Alloy or Classic app that has a space in the name of the project to iOS8 Simulator/Device the app will build to device the first time the users tries and runs as expected. However when you come to build any time after this, the user obtains the error shown below. *Notes* This *only* occurs if the project has a space in the name. This occurs in both the CLI and in Studio.
[ERROR] :  2014-09-04 12:49:18.829 xcodebuild[60449:1403] error: InputFile    /Users/eharris/Documents/Appcelerator_Studio_Workspace/Todo List Classic/build/iphone/Todo List_Prefix.pch 0 1409860066 366 33188... malformed line 9; 'InputFile' should have exactly five arguments
[ERROR] :  2014-09-04 12:49:18.831 xcodebuild[60449:1403] error: InputFile    /Users/eharris/Documents/Appcelerator_Studio_Workspace/Todo List Classic/build/iphone/Todo List_Prefix.pch 0 1409860066 366 33188... malformed line 9; 'InputFile' should have exactly five arguments
[ERROR] :  2014-09-04 12:49:18.833 xcodebuild[60449:1403] error: InputFile    /Users/eharris/Documents/Appcelerator_Studio_Workspace/Todo List Classic/build/iphone/Todo List_Prefix.pch 0 1409860066 366 33188... malformed line 9; 'InputFile' should have exactly five arguments
[ERROR] :  2014-09-04 12:49:18.834 xcodebuild[60449:1403] error: InputFile    /Users/eharris/Documents/Appcelerator_Studio_Workspace/Todo List Classic/build/iphone/Todo List_Prefix.pch 0 1409860066 366 33188... malformed line 9; 'InputFile' should have exactly five arguments
[ERROR] :  ** BUILD FAILED **
[ERROR] :  The following build commands failed:
[ERROR] :  	CompileC build/Todo\ List.build/Debug-iphoneos/Todo\ List-universal.build/Objects-normal/armv7/TiUITableViewAction.o Classes/TiUITableViewAction.m normal armv7 objective-c com.apple.compilers.llvm.clang.1_0.compiler
[ERROR] :  	CompileC build/Todo\ List.build/Debug-iphoneos/Todo\ List-universal.build/Objects-normal/armv7/TiUIiOSToolbarProxy.o Classes/TiUIiOSToolbarProxy.m normal armv7 objective-c com.apple.compilers.llvm.clang.1_0.compiler
[ERROR] :  	CompileC build/Todo\ List.build/Debug-iphoneos/Todo\ List-universal.build/Objects-normal/armv7/TiFile.o Classes/TiFile.m normal armv7 objective-c com.apple.compilers.llvm.clang.1_0.compiler
[ERROR] :  	CompileC build/Todo\ List.build/Debug-iphoneos/Todo\ List-universal.build/Objects-normal/armv7/TiUIiOSToolbar.o Classes/TiUIiOSToolbar.m normal armv7 objective-c com.apple.compilers.llvm.clang.1_0.compiler
[ERROR] :  (4 failures)

Steps To Reproduce

1. Create an Alloy or Classic app with a space in the name. 2. Build to Device/Simulator. 3. Build to Device/Simulator a second time.

Actual Result

2. The app will build. 3. The app will fail to build and in the console the error above will be shown.

Expected Result

The app should build to Device/Simulator both times.

Attachments

FileDateSize
TIMOB 17623_Prefix.pch2014-09-05T16:37:41.000+0000366

Comments

  1. Ingo Muschenetz 2014-09-05

    [~eharris]If you can repo this issue, can you add a copy of the file that says it is malformed?
  2. Ingo Muschenetz 2014-09-05

    To all involved, here I believe is the reference to where other projects are getting this error: https://github.com/CocoaPods/CocoaPods/issues/2394
  3. Ingo Muschenetz 2014-09-05

    Here's the file referenced above:
       //
       // Prefix header for all source files of the 'Titanium' target in the 'Titanium' project
       //
       
       #ifdef __OBJC__
           #import <Foundation/Foundation.h>
           #import <UIKit/UIKit.h>
       #endif
        
       
       // this was defined in 1.3+  
       // to allow us to include this define in the PCH
       // but not break pre-1.3
       #ifdef TI_POST_1_2
       	#import "defines.h"
       #endif
       
       #include "ThirdpartyNS.h"
       
  4. Ingo Muschenetz 2014-09-05

    You can see that there is nothing errant about line #9. This error seems benign, if we can avoid it.
  5. Chris Barber 2014-09-08

    Dupe of TIMOB-17618
  6. Zsolt RestyƔnszki 2014-09-29

    At Titanium Studio build: 3.3.0.201407100905 and Xcode 6.0.1 bug still existing. I had to restore Xcode 5.1.1 to able to compile my project, which name contains a space. Titanium SDK Version: 3.3.0.GA SDK Modules API Version:2 SDK Timestamp: 07/11/14 12:36 SDK Build Number: 787cd39 Titanium CLI CLI Version = 3.3.0 node-appc Version = 0.2.14 Xcode: latest from App Store
  7. Ingo Muschenetz 2014-09-29

    [~rezsolt] which version of the CLI and SDK are you using?
  8. Ingo Muschenetz 2014-09-29

    Okay. SDK/CLI 3.3.0 will not work with Xcode 6.0.1, so the only way to confirm this is to update to Studio/SDK/CLI 3.4.0 and retry.
  9. Lee Morris 2017-03-22

    Closing ticket as duplicate and links to the related ticket has been provided above.

JSON Source