I created a new iOS module and added it to the Titanium SDK.
The module built successfully and I was able to add it to an existing Titanium project. But when I try to run the project in iOS simulator, it fails with the following errors (below)
The module id is com.example.tipdf. I verified with xcrun that it has 64 bit support. Removing this module from the dependencies causes the project to build and run as expected.
Can someone tell me what is wrong? Am I missing something during packaging of the module?
Titanium Command-Line Interface, CLI version 3.4.2, Titanium SDK version 3.5.1.GA Copyright (c) 2012-2015, Appcelerator, Inc. All Rights Reserved. Please report bugs to http://jira.appcelerator.org/ 4/13/2015, 11:00:39 AM Operating System Name = Mac OS X Version = 10.10.2 Architecture = 64bit # CPUs = 8 Memory = 8589934592 Node.js Node.js Version = 0.12.0 npm Version = 2.7.0 Titanium CLI CLI Version = 3.4.2 Titanium SDK SDK Version = 3.5.1.GA SDK Path = /Users/xxxxx/Library/Application Support/Titanium/mobilesdk/osx/3.5.1.GA Target Platform = iphone Command /usr/local/bin/node /usr/local/bin/titanium --no-colors --no-progress-bars --no-prompt build --platform iphone --log-level trace --sdk 3.5.1.GA --project-dir /Users/xxxxx/Documents/Titanium_Studio_Workspace/TestApp --target simulator --ios-version 8.2 --device-family universal --deploy-type development --sim-type iphone --sim-version 8.2 --device-id 67FECCB2-A2B2-4E60-BE94-24A38EDA2007 --skip-js-minify --skip-js-minify [INFO] : Found Titanium module id=ti.paint version=1.4.0 platform=iphone deploy-type=development path=/Users/xxxxx/Library/Application Support/Titanium/modules/iphone/ti.paint/1.4.0 [INFO] : Found Titanium module id=ti.imagefactory version=1.2.0 platform=iphone deploy-type=development path=/Users/xxxxx/Library/Application Support/Titanium/modules/iphone/ti.imagefactory/1.2.0 [INFO] : Found Titanium module id=com.example.tipdf version=1.0.0 platform=iphone deploy-type=development path=/Users/xxxxx/Library/Application Support/Titanium/modules/iphone/com.example.tipdf/1.0.0 [INFO] : Found Titanium plugin id=ti.alloy version=1.0 [INFO] : Deploy type: development [INFO] : Building for target: simulator [INFO] : Building using iOS SDK: 8.2 [INFO] : Building for iOS Simulator: iPhone 5 [INFO] : Building for device family: universal [INFO] : Minimum iOS version: 7.0 [INFO] : Debugging disabled [INFO] : Profiler disabled [INFO] : Forcing rebuild: /Users/xxxxx/Documents/Titanium_Studio_Workspace/TestApp/build/iphone/build-manifest.json does not exist [INFO] : Initiating prepare phase [INFO] : Found Alloy app in /Users/xxxxx/Documents/Titanium_Studio_Workspace/TestApp/app [INFO] : Executing Alloy compile: /usr/local/bin/node /usr/local/bin/alloy compile /Users/xxxxx/Documents/Titanium_Studio_Workspace/TestApp/app --config platform=ios,version=0,simtype=none,devicefamily=universal,deploytype=development,target=simulator --no-colors [INFO] : [config.json] config.json unchanged, using cached config.json... [INFO] : ----- MVC GENERATION ----- [INFO] : [global style] loading from cache... [INFO] : [index.xml] view processing... [INFO] : style: "index.tss" [INFO] : view: "index.xml" [INFO] : controller: "index.js" [INFO] : created: "Resources/iphone/alloy/controllers/index.js" [INFO] : created: "Resources/iphone/alloy/styles/index.js" [INFO] : [signature.xml] view processing... [INFO] : style: "signature.tss" [INFO] : view: "signature.xml" [INFO] : controller: "signature.js" [INFO] : created: "Resources/iphone/alloy/controllers/signature.js" [INFO] : created: "Resources/iphone/alloy/styles/signature.js" [INFO] : [INFO] : [app.js] using cached app.js... [INFO] : [INFO] : ----- OPTIMIZING ----- [INFO] : - iphone/alloy.js [INFO] : - iphone/alloy/sync/localStorage.js [INFO] : - iphone/alloy/sync/properties.js [INFO] : - iphone/alloy/sync/sql.js [INFO] : [INFO] : Alloy compiled in 0.58703s [INFO] : Alloy compiler completed successfully [INFO] : Cleaning old build directory [INFO] : Performing full rebuild [INFO] : Copying Xcode iOS files [INFO] : Creating Xcode project directory: /Users/xxxxx/Documents/Titanium_Studio_Workspace/TestApp/build/iphone/TestApp.xcodeproj [INFO] : Writing Xcode project data file: Titanium.xcodeproj/project.pbxproj [INFO] : Writing Xcode project configuration: project.xcconfig [INFO] : Writing Xcode module configuration: module.xcconfig [INFO] : Injecting native libraries into Xcode project file [INFO] : Forcing rebuild: ApplicationDefaults.m has changed since last build [INFO] : Writing application defaults: /Users/xxxxx/Documents/Titanium_Studio_Workspace/TestApp/build/iphone/Classes/ApplicationDefaults.m [INFO] : Initiating Xcode pre-compile phase [INFO] : Processing JavaScript files [INFO] : Processing Titanium namespace resources [INFO] : Invoking xcodebuild [ERROR] : 2015-04-13 11:00:42.029 xcodebuild[27617:125984] DeveloperPortal: Using pre-existing current store at URL (file:///Users/xxxxx/Library/Developer/Xcode/DeveloperPortal%206.2.db). [ERROR] : ** BUILD FAILED ** [ERROR] : The following build commands failed: [ERROR] : Ld build/TestApp.build/Debug-iphonesimulator/TestApp-universal.build/Objects-normal/i386/TestApp normal i386 [ERROR] : Ld build/TestApp.build/Debug-iphonesimulator/TestApp-universal.build/Objects-normal/x86_64/TestApp normal x86_64 [ERROR] : (2 failures)