{ "id": "122944", "key": "TIMOB-15833", "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": "15711", "description": "2013 Sprint 24", "name": "2013 Sprint 24", "archived": true, "released": true, "releaseDate": "2013-11-29" }, { "id": "14982", "description": "Release 3.2.0", "name": "Release 3.2.0", "archived": false, "released": true, "releaseDate": "2013-12-19" }, { "id": "15422", "description": "Release 3.3.0", "name": "Release 3.3.0", "archived": false, "released": true, "releaseDate": "2014-07-16" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2013-11-27T17:58:18.000+0000", "created": "2013-11-26T17:11:19.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [], "versions": [], "issuelinks": [ { "id": "33398", "type": { "id": "10011", "name": "Includes", "inward": "is included by", "outward": "includes" }, "outwardIssue": { "id": "122847", "key": "MOD-1833", "fields": { "summary": "Build fails on ti.urbanairship module with 3.2.0-alpha3 CLI", "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": "Critical", "id": "1" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "jalter", "key": "jalter", "displayName": "Jon Alter", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2013-12-03T18:27:08.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": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "When the Map module was removed from the SDK, the linking to the Map framework was also removed MOD-1514. This has caused issues with other modules that are using the MapKit, but are assuming that it will already be linked because it was in the SDK.\r\n\r\nTo resolve this issue we need to weak link to MapKit in the SDK.", "attachment": [], "flagged": false, "summary": "iOS: Weak link MapKit", "creator": { "name": "jalter", "key": "jalter", "displayName": "Jon Alter", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "jalter", "key": "jalter", "displayName": "Jon Alter", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "281451", "author": { "name": "jalter", "key": "jalter", "displayName": "Jon Alter", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Master PR: https://github.com/appcelerator/titanium_mobile/pull/5027\n3_2_X PR: https://github.com/appcelerator/titanium_mobile/pull/5028", "updateAuthor": { "name": "jalter", "key": "jalter", "displayName": "Jon Alter", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-11-26T18:09:54.000+0000", "updated": "2013-11-26T18:09:54.000+0000" }, { "id": "281573", "author": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as fixed. Verified I can build Alloy and Classic project to iOS without any build errors and was able to build with ti.urbanairship module; verified both APPTS-3418 and TIMODOPEN-350.\n\nAppcelerator Studio, build: 3.2.0.201311252112\nSDK build: 3.2.0.v20131126144841\nCLI: 3.2.0-alpha3\nAlloy: 1.3.0-alpha6\nXcode: 5.0.2\nDevice: iphone 5 (7.0.2), iphone simulator (7.0.3)", "updateAuthor": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2013-11-27T00:30:40.000+0000", "updated": "2013-11-27T00:30:40.000+0000" }, { "id": "281601", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Had to update summary and component.", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-11-27T05:16:14.000+0000", "updated": "2013-11-27T05:16:14.000+0000" }, { "id": "281615", "author": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "body": "Same is true for other links I think. After this merge the Urban Airship module now stops at:\r\n\r\n{code}\r\n[TRACE] Undefined symbols for architecture i386:\r\n[TRACE] \"_OBJC_CLASS_$_CTTelephonyNetworkInfo\", referenced from:\r\n[TRACE] objc-class-ref in libti.urbanairship.a(UAEvent.o)\r\n[TRACE] ld: symbol(s) not found for architecture i386\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] Ld build/Debug-iphonesimulator/House\\ Battle.app/House\\ Battle normal i386\r\n[ERROR] (1 failure)\r\n{code}", "updateAuthor": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "created": "2013-11-27T09:25:46.000+0000", "updated": "2013-11-27T09:25:46.000+0000" }, { "id": "281628", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "[~fokke] I don't believe we saw that particular error. Is there something special about your project? Say you used it in a new application. Would it fail there as well?", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-11-27T13:43:39.000+0000", "updated": "2013-11-27T13:43:39.000+0000" }, { "id": "281666", "author": { "name": "jalter", "key": "jalter", "displayName": "Jon Alter", "active": true, "timeZone": "America/Los_Angeles" }, "body": "[~fokke] The symbol that you can't find \"CTTelephonyNetworkInfo\" is part of the CoreTelephony framework which is included by the module from module.xcconfig. My guess is that you changed the module.xcconfig file in the UA module and forgot to put it back the way it was. \n\nMake sure you have this line in your module.xcconfig\n{code}\nOTHER_LDFLAGS=$(inherited) -ObjC -framework security -framework CoreTelephony\n{code}\n\nAlso make sure you do a clean build before testing this.", "updateAuthor": { "name": "jalter", "key": "jalter", "displayName": "Jon Alter", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-11-27T17:58:00.000+0000", "updated": "2013-11-27T17:58:00.000+0000" }, { "id": "281672", "author": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "body": "[~jalter] I didn't take that line out, only added the weak link for MapKit:\r\n\r\n{code}\r\n//\r\n// PLACE ANY BUILD DEFINITIONS IN THIS FILE AND THEY WILL BE \r\n// PICKED UP DURING THE APP BUILD FOR YOUR MODULE\r\n//\r\n// see the following webpage for instructions on the settings\r\n// for this file:\r\n// http://developer.apple.com/mac/library/documentation/DeveloperTools/Conceptual/XcodeBuildSystem/400-Build_Configurations/build_configs.html\r\n// \r\n\r\n//\r\n// How to add a Framework (example)\r\n//\r\nOTHER_LDFLAGS=$(inherited) -ObjC -framework security -framework CoreTelephony\r\n// Adding a framework for a specific version(s) of iPhone:\r\n//\r\n// OTHER_LDFLAGS[sdk=iphoneos4*]=$(inherited) -framework Foo\r\n// OTHER_LDFLAGS[sdk=iphonesimulator4*]=$(inherited) -framework Foo\r\n//\r\n//\r\n// How to add a compiler define:\r\n//\r\n// OTHER_CFLAGS=$(inherited) -DFOO=1\r\n//\r\n//\r\n// IMPORTANT NOTE: always use $(inherited) in your overrides\r\n// \r\nOTHER_LDFLAGS=$(inherited) -weak_framework MapKit\r\n{code}\r\n\r\nBut even after downloading the latest distribution (1.3.2) of the module again, I still get the following after first running {{ti clean}} and then {{ti build -p ios}}:\r\n\r\n{code}\r\n[TRACE] /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -arch i386 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator7.0.sdk -L/Users/zandbergen/dev/apps/HouseBattle/build/iphone/build/Debug-iphonesimulator -L/Users/zandbergen/dev/apps/HouseBattle/build/iphone/lib -L/Users/zandbergen/Library/Application\\ Support/Titanium/modules/iphone/ti.imagefactory/1.1.1 -L/Users/zandbergen/Library/Application\\ Support/Titanium/modules/iphone/dk.napp.testflight/2.0 -L/Users/zandbergen/Library/Application\\ Support/Titanium/modules/iphone/ti.urbanairship/_1.3.2 -L/Users/zandbergen/Library/Application\\ Support/Titanium/modules/iphone/ti.storekit/2.1.2 -L/Users/zandbergen/Library/Application\\ Support/Titanium/modules/iphone/facebook/3.1.1 -F/Users/zandbergen/dev/apps/HouseBattle/build/iphone/build/Debug-iphonesimulator -filelist /Users/zandbergen/dev/apps/HouseBattle/build/iphone/build/House\\ Battle.build/Debug-iphonesimulator/House\\ Battle.build/Objects-normal/i386/House\\ Battle.LinkFileList -Xlinker -objc_abi_version -Xlinker 2 -ObjC -weak_framework AdSupport -weak_framework Accounts -weak_framework Social -weak_framework AdSupport -weak_framework Accounts -weak_framework Social -framework StoreKit -framework Security -framework StoreKit -framework Security -weak_framework MapKit -weak_framework MapKit -weak_framework iAd -weak_framework iAd -fobjc-link-runtime -Xlinker -no_implicit_dylibs -stdlib=libstdc++ -mios-simulator-version-min=6.0 -weak_framework CoreText -framework EventKit -framework EventKitUI -weak_framework Security -licucore -framework Foundation -weak_framework UIKit -framework CoreGraphics -weak_framework AddressBook -framework AddressBookUI -framework CFNetwork -framework CoreLocation -weak_framework MapKit -framework MessageUI -framework MobileCoreServices -framework OpenGLES -framework QuartzCore -framework SystemConfiguration -lsqlite3 -lz -framework AudioToolbox -weak_framework MediaPlayer -framework AVFoundation -lxml2 -framework StoreKit -lTiCore -lti.imagefactory -ldk.napp.testflight -lti.urbanairship -lti.storekit -lfacebook -framework ExternalAccessory -ltiverify -lti_ios_debugger -lti_ios_profiler -Xlinker -dependency_info -Xlinker /Users/zandbergen/dev/apps/HouseBattle/build/iphone/build/House\\ Battle.build/Debug-iphonesimulator/House\\ Battle.build/Objects-normal/i386/House\\ Battle_dependency_info.dat -o /Users/zandbergen/dev/apps/HouseBattle/build/iphone/build/Debug-iphonesimulator/House\\ Battle.app/House\\ Battle\r\n[TRACE] Undefined symbols for architecture i386:\r\n[TRACE] \"_OBJC_CLASS_$_CTTelephonyNetworkInfo\", referenced from:\r\n[TRACE] objc-class-ref in libti.urbanairship.a(UAEvent.o)\r\n[TRACE] ld: symbol(s) not found for architecture i386\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] Ld build/Debug-iphonesimulator/House\\ Battle.app/House\\ Battle normal i386\r\n[ERROR] (1 failure)\r\n{code}", "updateAuthor": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "created": "2013-11-27T18:22:27.000+0000", "updated": "2013-11-27T18:22:27.000+0000" }, { "id": "281676", "author": { "name": "jalter", "key": "jalter", "displayName": "Jon Alter", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Hey [~fokke], thanks for the feedback.\n- What TiSDK build are you running against?\n- Is there an TiSDK build that you can run against that doesn't result in this error?\n- What version of Xcode are you using?\n- Can you try making a new project, use the UrbanAirship example, and see if you get the same results?", "updateAuthor": { "name": "jalter", "key": "jalter", "displayName": "Jon Alter", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-11-27T18:33:55.000+0000", "updated": "2013-11-27T18:33:55.000+0000" }, { "id": "281763", "author": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "body": "I build against:\r\n\r\n* CLI 3.2.0-beta\r\n* SDK 3.2.0.v20131122172908\r\n* Xcode 5.0.2 (build 5A3005)\r\n* iOS SDK 7.0.3\r\n\r\nSteps\r\n1. Create: {{ti create -p ios -n ua --id test.ua -d .}}\r\n2. Add: {{ti.urbanairship}}\r\n3. Run:: {{ti build -p ios}}", "updateAuthor": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "created": "2013-11-28T08:06:16.000+0000", "updated": "2013-11-28T08:06:16.000+0000" }, { "id": "281764", "author": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "body": "I also tried the latest SDK: 3.2.0.v20131126144841", "updateAuthor": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "created": "2013-11-28T08:07:49.000+0000", "updated": "2013-11-28T08:07:49.000+0000" }, { "id": "281899", "author": { "name": "jalter", "key": "jalter", "displayName": "Jon Alter", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Thanks for the info [~fokke]. Unfortunately we haven't been able to reproduce your issue on this end. If you build with a version of the SDK before the above PR was merged, does it build successfully? ", "updateAuthor": { "name": "jalter", "key": "jalter", "displayName": "Jon Alter", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-12-02T16:01:05.000+0000", "updated": "2013-12-02T16:01:05.000+0000" }, { "id": "281977", "author": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "body": "Actually, I also get it with the same CLI and stuff, but then using the 3.1.3.GA SDK?", "updateAuthor": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "created": "2013-12-02T20:54:23.000+0000", "updated": "2013-12-02T20:54:23.000+0000" }, { "id": "281990", "author": { "name": "jalter", "key": "jalter", "displayName": "Jon Alter", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Interesting. Try this:\n1. Try to build your project once\n2. Go to the build folder of your project and open the Xcode project in Xcode\n3. Look under frameworks and see if CoreTelephony.framework is there\n4. If not, Click on the project in Xcode > on the right click \"Build Phases\" > Expand \"Link Binary With Libraries\" > Click the + and add the CoreTelephony.framework\n5. Still in Xcode, go to \"Product\" > \"Clean\" and clean your project\n6. Try to run your project from Xcode.\n\nPlease be sure to let me know how it goes and if CoreTelephony.framework is in frameworks or if you had to add it.", "updateAuthor": { "name": "jalter", "key": "jalter", "displayName": "Jon Alter", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-12-02T21:27:27.000+0000", "updated": "2013-12-02T21:27:27.000+0000" }, { "id": "282092", "author": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "body": "The {{CoreTelephony.framework}} was not in the list. After adding it like instructed I could run the project. I guess because {{ti build}} didn't finish the app shows the red-screen-of-death telling me {{app.js}} does not exist.\r\n\r\nIf you want we could set up a teamview (or other) session so you can test on my system? ;)", "updateAuthor": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "created": "2013-12-03T10:11:26.000+0000", "updated": "2013-12-03T10:11:26.000+0000" }, { "id": "282123", "author": { "name": "jalter", "key": "jalter", "displayName": "Jon Alter", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Ok great! It am getting that there is something wrong with the module on your system. Lets try a few more things here.\n\n1. Re-download the latest UrbanAirship module.\n2. Go to where your modules are installed and go to the ti.urbanairship folder. Probably something like: \n\n{noformat}/Users/jalter/Library/Application Support/Titanium/modules/iphone/ti.urbanairship{noformat}\n\n3. Delete the folder that is named the version of the module that you downloaded from the folder in step #2 (eg. 1.3.2).\n4. Install the new module that you just downloaded.\n5. You should see that folder `1.3.2` show up in the ti.urbanairship folder.\n6. In your tiapp.xml include the module like this (below) so we can be sure we are using the version that we just installed.\n\n{noformat} ti.urbanairship {noformat}\n\n6. Be sure to do a \"ti clean\" before you build.\n7. Build the project using the 3.1.3.GA SDK so we are sure to be working with something stable.\n\nThank you for your patience.", "updateAuthor": { "name": "jalter", "key": "jalter", "displayName": "Jon Alter", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-12-03T16:52:09.000+0000", "updated": "2013-12-03T16:52:09.000+0000" }, { "id": "282154", "author": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "body": "Thanks for helping me trace this down:\r\n\r\n1. I removed the module and ran {{ti clean && ti build -p ios}} to make sure the module reported missing.\r\n2. I [downloaded|https://github.com/appcelerator/titanium_modules/blob/master/urbanairship/mobile/ios/ti.urbanairship-iphone-1.3.2.zip?raw=true] and installed the module\r\n3. Again ran {{ti clean && ti build -p ios}} and... it worked?!\r\n\r\nLike I described in the original description of this issue I tried re-installing the module before without success. I guess something changed since then? Anyway... looks resolved. Thx a lot [~jalter]!", "updateAuthor": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "created": "2013-12-03T18:27:08.000+0000", "updated": "2013-12-03T18:27:08.000+0000" } ], "maxResults": 16, "total": 16, "startAt": 0 } } }