{ "id": "146022", "key": "TIMOB-18725", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [ { "id": "16593", "description": "Release 4.0.0", "name": "Release 4.0.0", "archived": false, "released": true, "releaseDate": "2015-05-21" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2015-03-21T00:51:39.000+0000", "created": "2015-03-20T17:27:09.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [ "beta" ], "versions": [], "issuelinks": [ { "id": "47606", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "147608", "key": "TIMOB-18873", "fields": { "summary": "Building an iOS app with 4.0.0 and then rebuilding with 3.5.1.GA fails", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "priority": { "name": "High", "id": "2" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2015-05-07T01:22:39.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "13103", "name": "CLI", "description": "Node-based command line interface" }, { "id": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "h5.Description\r\n\r\nWhen building a project using SDK from branch 4_0_X, I regularly see errors such as below, I am unsure as to the actual root cause of these errors but I believe I have narrowed it down to the SDK as during my investigation it appeared the CLI had no effect.\r\n\r\n{code}\r\nTRACE] : Undefined symbols for architecture armv7:\r\n[TRACE] : \"_WTFCrash\", referenced from:\r\n[TRACE] : TiDebuggerInterface::resetObjectProperty(int, std::__1::vector, std::__1::allocator >, std::__1::allocator, std::__1::allocator > > > const&) in libti_ios_debugger.a(TiDebuggerInterface.o)\r\n[TRACE] : (maybe you meant: _WTFCrashWithSecurityImplication, _Ti_WTFCrash )\r\n[TRACE] : ld: symbol(s) not found for architecture armv7\r\n[TRACE] : clang: error: linker command failed with exit code 1 (use -v to see invocation)\r\n[TRACE] : Ld build/Testy2.0.build/Debug-iphoneos/Testy2.0-universal.build/Objects-normal/arm64/Testy2.0 normal arm64\r\n[TRACE] : cd /Users/eharris/Documents/Appcelerator_Studio_Workspace/Testy2.0/build/iphone\r\n[TRACE] : export IPHONEOS_DEPLOYMENT_TARGET=7.0\r\n[TRACE] : export PATH=\"/Applications/Xcode6.1.1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode6.1.1.app/Contents/Developer/usr/bin:/Library/Java/JavaVirtualMachines/jdk1.7.0_71.jdk/Contents/Home/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/git/bin:/Users/eharris/Library/android-sdk-macosx/tools:/Users/eharris/Library/android-sdk-macosx/platform-tools\"\r\n[TRACE] : /Applications/Xcode6.1.1.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -arch arm64 -isysroot /Applications/Xcode6.1.1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.1.sdk -L/Users/eharris/Documents/Appcelerator_Studio_Workspace/Testy2.0/build/iphone/build/Debug-iphoneos -L/Users/eharris/Documents/Appcelerator_Studio_Workspace/Testy2.0/build/iphone/lib -L/Users/eharris/Documents/Appcelerator_Studio_Workspace/Testy2.0/build/iphone/Classes/APSAnalytics -L/Users/eharris/Documents/Appcelerator_Studio_Workspace/Testy2.0/build/iphone/Classes/APSHTTPClient -F/Users/eharris/Documents/Appcelerator_Studio_Workspace/Testy2.0/build/iphone/build/Debug-iphoneos -filelist /Users/eharris/Documents/Appcelerator_Studio_Workspace/Testy2.0/build/iphone/build/Testy2.0.build/Debug-iphoneos/Testy2.0-universal.build/Objects-normal/arm64/Testy2.0.LinkFileList -dead_strip -ObjC -weak_framework iAd -fobjc-link-runtime -stdlib=libc++ -miphoneos-version-min=7.0 -lti_ios_profiler -framework CoreMedia -weak_framework CoreMotion -lAPSAnalytics -weak_framework CoreText -framework EventKit -framework EventKitUI -weak_framework Security -framework Foundation -weak_framework UIKit -framework CoreGraphics -framework AddressBook -framework AddressBookUI -framework CFNetwork -framework CoreLocation -weak_framework MapKit -framework MessageUI -framework MobileCoreServices -lti_ios_debugger -framework OpenGLES -framework QuartzCore -framework SystemConfiguration -lsqlite3 -lz -framework AudioToolbox -lAPSHTTPClient -weak_framework MediaPlayer -framework AVFoundation -lxml2 -framework StoreKit -lTiCore -ltiverify -licucore -Xlinker -dependency_info -Xlinker /Users/eharris/Documents/Appcelerator_Studio_Workspace/Testy2.0/build/iphone/build/Testy2.0.build/Debug-iphoneos/Testy2.0-universal.build/Objects-normal/arm64/Testy2.0_dependency_info.dat -o /Users/eharris/Documents/Appcelerator_Studio_Workspace/Testy2.0/build/iphone/build/Testy2.0.build/Debug-iphoneos/Testy2.0-universal.build/Objects-normal/arm64/Testy2.0\r\n[TRACE] : Undefined symbols for architecture arm64:\r\n[TRACE] : \"_WTFCrash\", referenced from:\r\n[TRACE] : TiDebuggerInterface::resetObjectProperty(int, std::__1::vector, std::__1::allocator >, std::__1::allocator, std::__1::allocator > > > const&) in libti_ios_debugger.a(TiDebuggerInterface.o)\r\n[TRACE] : (maybe you meant: _WTFCrashWithSecurityImplication, _Ti_WTFCrash )\r\n[TRACE] : ld: symbol(s) not found for architecture arm64\r\n[TRACE] : clang: error: linker command failed with exit code 1 (use -v to see invocation)\r\n[ERROR] : ** BUILD FAILED **\r\n[ERROR] : The following build commands failed:\r\n[ERROR] : \tLd build/Testy2.0.build/Debug-iphoneos/Testy2.0-universal.build/Objects-normal/armv7/Testy2.0 normal armv7\r\n[ERROR] : \tLd build/Testy2.0.build/Debug-iphoneos/Testy2.0-universal.build/Objects-normal/arm64/Testy2.0 normal arm64\r\n[ERROR] : (2 failures)\r\n{code}\r\n\r\n\r\n\r\n\r\nh5.Steps to reproduce\r\n\r\n1. Create a project using SDK 3.5.1.GA\r\n2. Build the project using ti build -p ios\r\n3. Change the SDK in the tiapp.xml and run ti sdk select and choose the latest 4_0_X SDK\r\n4. Run ti build -p ios again\r\n\r\nh5.Actual result\r\n\r\n2. The build will pass\r\n4. The build will fail with errors such as the one listed above\r\n\r\nh5.Expected result\r\n\r\nThe build should pass both times", "attachment": [], "flagged": false, "summary": "iOS: Unable to build a project using 4.0.0 that was created using 3.5.1.GA", "creator": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "subtasks": [], "reporter": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "environment": null, "comment": { "comments": [ { "id": "346725", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "[~eharris] [~emerriman]\r\n* Does it fail if you clean before rebuilding?\r\n* When is the first SDK that fails with this error?\r\n* Does it fail on Android as well?", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2015-03-20T18:10:50.000+0000", "updated": "2015-03-20T18:10:50.000+0000" }, { "id": "346752", "author": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "body": "If you delete the _build_ folder and re-build, it will build fine.", "updateAuthor": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2015-03-20T20:01:29.000+0000", "updated": "2015-03-20T20:01:29.000+0000" }, { "id": "346754", "author": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "body": "[~ingo]\r\n\r\n\r\n* If I clean the project then rebuilding works fine\r\n* I have downloaded the earliest SDK from the 4_0_X branch (4.0.0.v20150227132702) and this occurs using that build\r\n* Building for Android I see no issues", "updateAuthor": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "created": "2015-03-20T20:27:06.000+0000", "updated": "2015-03-20T20:27:06.000+0000" }, { "id": "346797", "author": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "body": "PR : https://github.com/appcelerator/titanium_mobile/pull/6739\r\n4_0_X : https://github.com/appcelerator/titanium_mobile/pull/6740", "updateAuthor": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2015-03-20T23:12:51.000+0000", "updated": "2015-03-21T00:51:13.000+0000" }, { "id": "347153", "author": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "body": "Verified fix on:\r\n\r\nMac OSX 10.10.2\r\nTitanium SDK build: 4.0.0.v20150323131014\r\nTitanium CLI, build: 4.0.0-alpha\r\nAlloy: 1.6.0-alpha\r\nXcode 6.2\r\niPhone 6 (8.2)\r\n\r\nWhen changing the SDK the project is now rebuilt and the errors are no longer seen.\r\n\r\nClosing ticket.", "updateAuthor": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "created": "2015-03-24T18:32:50.000+0000", "updated": "2015-03-24T18:32:50.000+0000" } ], "maxResults": 6, "total": 6, "startAt": 0 } } }