{ "id": "175476", "key": "TIMOB-28100", "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": "21051", "description": "", "name": "Release 9.2.0", "archived": false, "released": true, "releaseDate": "2020-09-23" }, { "id": "21057", "description": "", "name": "Release 9.1.1", "archived": true, "released": false } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2020-09-08T14:37:31.000+0000", "created": "2020-08-26T01:09:32.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [ "regression" ], "versions": [], "issuelinks": [ { "id": "58677", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "175400", "key": "TIMOB-28067", "fields": { "summary": "iOS: swipe down gallery photo picker does not fire cancel callback ", "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": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "updated": "2020-09-25T12:00:48.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": "Just wanted to quickly alert you guys to a problem with Ti.Media on iOS. We were just packaging for the app store a current, functioning app which uses Ti.Media.AudioPlayer using the new 9.1.0.GA SDK and these MediaModule.o compile errors popped up. Same errors happened when using the 9.1.1 SDK. The same app builds fine with SDK 9.1.0.v20200814072027 and earlier SDKs.\r\n\r\n[ERROR] : ** ARCHIVE FAILED **\r\n[ERROR] : The following build commands failed:\r\n[ERROR] : \tCompileC /Users/jrf/Studio/iCoastside/build/iphone/build/Intermediates/iCoastside.build/Release-iphoneos/iCoastside.build/Objects-normal/armv7/MediaModule.o /Users/jrf/Studio/iCoastside/build/iphone/Classes/MediaModule.m normal armv7 objective-c com.apple.compilers.llvm.clang.1_0.compiler\r\n[ERROR] : \tCompileC /Users/jrf/Studio/iCoastside/build/iphone/build/Intermediates/iCoastside.build/Release-iphoneos/iCoastside.build/Objects-normal/arm64/MediaModule.o /Users/jrf/Studio/iCoastside/build/iphone/Classes/MediaModule.m normal arm64 objective-c com.apple.compilers.llvm.clang.1_0.compiler\r\n[ERROR] : (2 failures)\r\n\r\nI could put together a simple test case referencing Ti.Media but I figured it was more important to let you know that you've got a problem with a GA release ASAP.", "attachment": [ { "id": "67506", "filename": "build_iphone.log", "author": { "name": "jfalcone", "key": "jfalcone", "displayName": "Joe Falcone", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2020-08-26T15:45:59.000+0000", "size": 3894334, "mimeType": "text/plain" } ], "flagged": false, "summary": "iOS: MediaModule.o compile error when packaging for app store", "creator": { "name": "jfalcone", "key": "jfalcone", "displayName": "Joe Falcone", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "jfalcone", "key": "jfalcone", "displayName": "Joe Falcone", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "SDK 9.1.0.GA and 9.1.1.v20200825113916", "comment": { "comments": [ { "id": "456603", "author": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "body": "[~jfalcone], thanks for the bug report. I'm trying to reproduce this using kitchensink-v2 which also uses AudioPlayer but I'm unable to. Could you upload the full build_iphone.log file from your build directory, it might be that there is something else causing this error and it's just surfacing through the MediaModule file", "updateAuthor": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "created": "2020-08-26T15:33:29.000+0000", "updated": "2020-08-26T15:33:29.000+0000" }, { "id": "456605", "author": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "body": "[~jfalcone] thanks for the quick upload! I think I see the problem, and also why this isn't occuring in KS (it uses camera APIs). I'll move this over to TIMOB, and prepare a minimal sample code\r\n\r\nSpecific error is\r\n{code}\r\n[TRACE] CompileC /Users/jrf/Studio/iCoastside/build/iphone/build/Intermediates/iCoastside.build/Release-iphoneos/iCoastside.build/Objects-normal/armv7/MediaModule.o /Users/jrf/Studio/iCoastside/build/iphone/Classes/MediaModule.m normal armv7 objective-c com.apple.compilers.llvm.clang.1_0.compiler (in target 'iCoastside' from project 'iCoastside')\r\n[TRACE] cd /Users/jrf/Studio/iCoastside/build/iphone\r\n[TRACE] export LANG=en_US.US-ASCII\r\n[TRACE] /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x objective-c -target armv7-apple-ios10.0 -fmessage-length=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -std=c99 -fobjc-weak -fmodules -gmodules -fmodules-cache-path=/Users/jrf/Studio/iCoastside/build/iphone/DerivedData/ModuleCache.noindex -fmodules-prune-interval=86400 -fmodules-prune-after=345600 -fbuild-session-file=/Users/jrf/Studio/iCoastside/build/iphone/DerivedData/ModuleCache.noindex/Session.modulevalidation -fmodules-validate-once-per-build-session -Wnon-modular-include-in-framework-module -Werror=non-modular-include-in-framework-module -Wno-trigraphs -fpascal-strings -Os -fno-common -Wno-missing-field-initializers -Wno-missing-prototypes -Wno-return-type -Wunreachable-code -Wno-implicit-atomic-properties -Wno-objc-interface-ivars -Wno-arc-repeated-use-of-weak -Wimplicit-retain-self -Wduplicate-method-match -Wno-missing-braces -Wno-parentheses -Wswitch -Wunused-function -Wno-unused-label -Wno-unused-parameter -Wno-unused-variable -Wno-unused-value -Wempty-body -Wuninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wconstant-conversion -Wint-conversion -Wbool-conversion -Wenum-conversion -Wno-float-conversion -Wnon-literal-null-conversion -Wobjc-literal-conversion -Wshorten-64-to-32 -Wpointer-sign -Wno-newline-eof -Wno-selector -Wno-strict-selector-match -Wno-undeclared-selector -Wdeprecated-implementations -DDEPLOYTYPE=production -DLAUNCHSCREEN_STORYBOARD=1 -DDEFAULT_BGCOLOR_RED=1 -DDEFAULT_BGCOLOR_GREEN=1 -DDEFAULT_BGCOLOR_BLUE=1 -DDISABLE_TI_LOG_SERVER=1 -DNS_BLOCK_ASSERTIONS=1 -DOBJC_OLD_DISPATCH_PROTOTYPES=0 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.6.sdk -fstrict-aliasing -Wprotocol -Wdeprecated-declarations -g -fvisibility=hidden -Wno-sign-conversion -Winfinite-recursion -Wcomma -Wblock-capture-autoreleasing -Wno-strict-prototypes -Wno-semicolon-before-method-body -Wno-unguarded-availability -iquote /Users/jrf/Studio/iCoastside/build/iphone/build/Intermediates/iCoastside.build/Release-iphoneos/iCoastside.build/iCoastside-generated-files.hmap -I/Users/jrf/Studio/iCoastside/build/iphone/build/Intermediates/iCoastside.build/Release-iphoneos/iCoastside.build/iCoastside-own-target-headers.hmap -I/Users/jrf/Studio/iCoastside/build/iphone/build/Intermediates/iCoastside.build/Release-iphoneos/iCoastside.build/iCoastside-all-target-headers.hmap -iquote /Users/jrf/Studio/iCoastside/build/iphone/build/Intermediates/iCoastside.build/Release-iphoneos/iCoastside.build/iCoastside-project-headers.hmap -I/Users/jrf/Studio/iCoastside/build/iphone/build/Products/Release-iphoneos/include -I/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.6.sdk/usr/include/libxml2 -Iheaders -I/Users/jrf/Studio/iCoastside/build/iphone/build/Intermediates/iCoastside.build/Release-iphoneos/iCoastside.build/DerivedSources-normal/armv7 -I/Users/jrf/Studio/iCoastside/build/iphone/build/Intermediates/iCoastside.build/Release-iphoneos/iCoastside.build/DerivedSources/armv7 -I/Users/jrf/Studio/iCoastside/build/iphone/build/Intermediates/iCoastside.build/Release-iphoneos/iCoastside.build/DerivedSources -Wno-arc-performSelector-leaks -F/Users/jrf/Studio/iCoastside/build/iphone/build/Products/Release-iphoneos -FFrameworks -DNDEBUG -include /Users/jrf/Studio/iCoastside/build/iphone/build/Intermediates/PrecompiledHeaders/SharedPrecompiledHeaders/6311335957630924213/iCoastside_Prefix.pch -MMD -MT dependencies -MF /Users/jrf/Studio/iCoastside/build/iphone/build/Intermediates/iCoastside.build/Release-iphoneos/iCoastside.build/Objects-normal/armv7/MediaModule.d --serialize-diagnostics /Users/jrf/Studio/iCoastside/build/iphone/build/Intermediates/iCoastside.build/Release-iphoneos/iCoastside.build/Objects-normal/armv7/MediaModule.dia -c /Users/jrf/Studio/iCoastside/build/iphone/Classes/MediaModule.m -o /Users/jrf/Studio/iCoastside/build/iphone/build/Intermediates/iCoastside.build/Release-iphoneos/iCoastside.build/Objects-normal/armv7/MediaModule.o\r\n[TRACE] /Users/jrf/Studio/iCoastside/build/iphone/Classes/MediaModule.m:1828:26: error: use of undeclared identifier 'picker'\r\n[TRACE] [self closeModalPicker:picker];\r\n[TRACE] ^\r\n[TRACE] 1 error generated.\r\n[TRACE] \r\n{code}\r\n\r\nMinimal reproduction code below, paste into app.js and build to device\r\n\r\n{code}\r\nvar win = Ti.UI.createWindow();\r\nvar audioPlayer = Ti.Media.createAudioPlayer();\r\nwin.open();\r\n{code}", "updateAuthor": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "created": "2020-08-26T15:52:43.000+0000", "updated": "2020-08-26T15:57:29.000+0000" }, { "id": "456606", "author": { "name": "jfalcone", "key": "jfalcone", "displayName": "Joe Falcone", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Build log attached. More details: Xcode [^build.log] 11.6 (11E708), and the app uses Hyperloop. [^build_iphone.log] \r\n\r\nHere is the error from the build log...\r\n\r\n[TRACE] /Users/jrf/Studio/iCoastside/build/iphone/Classes/MediaModule.m:1828:26: error: use of undeclared identifier 'picker'\r\n[TRACE] [self closeModalPicker:picker];\r\n[TRACE] ^\r\n[TRACE] 1 error generated.\r\n\r\nProbably this in mediaModule.m\r\n\r\n{code}\r\n#pragma mark UIAdaptivePresentationControllerDelegate\r\n\r\n#if IS_SDK_IOS_13\r\n- (void)presentationControllerDidDismiss:(UIPresentationController *)presentationController\r\n{\r\n [self closeModalPicker:picker];\r\n [self sendPickerCancel];\r\n}\r\n#endif\r\n{code}", "updateAuthor": { "name": "jfalcone", "key": "jfalcone", "displayName": "Joe Falcone", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2020-08-26T15:53:32.000+0000", "updated": "2020-08-26T16:06:53.000+0000" }, { "id": "456607", "author": { "name": "jfalcone", "key": "jfalcone", "displayName": "Joe Falcone", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Thank you... this is from our use of Ti.Media.createAudioPlayer so different from camera api.", "updateAuthor": { "name": "jfalcone", "key": "jfalcone", "displayName": "Joe Falcone", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2020-08-26T15:55:45.000+0000", "updated": "2020-08-26T15:55:45.000+0000" }, { "id": "456608", "author": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "body": "PR: https://github.com/appcelerator/titanium_mobile/pull/11968", "updateAuthor": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "created": "2020-08-26T16:15:53.000+0000", "updated": "2020-08-26T16:15:53.000+0000" }, { "id": "456609", "author": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "body": "[~jfalcone], yup you're right! If my understanding is right (I'm not a real iOS dev ;)) then guarding with an ifdef for USE_TI_MEDIAOPENPHOTOGALLERY should be good enough (it works for me at least)", "updateAuthor": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "created": "2020-08-26T16:17:31.000+0000", "updated": "2020-08-26T16:17:31.000+0000" }, { "id": "456626", "author": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "body": "FR Passed, Waiting on Jenkins build for Master and 9_3_X port. ", "updateAuthor": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2020-08-27T15:18:18.000+0000", "updated": "2020-08-27T15:18:35.000+0000" }, { "id": "456647", "author": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "body": "cherry-picked to 9_1_X for 9.1.1 target", "updateAuthor": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "created": "2020-08-28T19:58:05.000+0000", "updated": "2020-08-28T19:58:05.000+0000" }, { "id": "456763", "author": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "body": "*Closing ticket*. Fix verified in SDK version {{9.2.0.v20200908050955}}, {{9.1.1.v20200903090820}} and {{9.3.0.v20200908051946}}.\r\n\r\n*Test and other information can be found at:*\r\nMaster: https://github.com/appcelerator/titanium_mobile/pull/11968", "updateAuthor": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2020-09-08T14:37:24.000+0000", "updated": "2020-09-08T14:37:24.000+0000" }, { "id": "457032", "author": { "name": "shamsulazhar", "key": "shamsulazhar", "displayName": "Shamsul Azhar", "active": true, "timeZone": "Asia/Kuala_Lumpur" }, "body": "I'm still seeing this problem in SDK9.2.0.GA when building for device. Is this expected. Is this fix for the next GA release? ", "updateAuthor": { "name": "shamsulazhar", "key": "shamsulazhar", "displayName": "Shamsul Azhar", "active": true, "timeZone": "Asia/Kuala_Lumpur" }, "created": "2020-09-25T10:38:37.000+0000", "updated": "2020-09-25T10:38:37.000+0000" }, { "id": "457033", "author": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "body": "[~shamsulazhar], if you're seeing this with SDK 9.2.0 it's probably TIMOB-28151. The fix is merged to the 9_2_X branch and available in 9.2.1.v20200924101706 which you can get with {{appc ti sdk install -b 9_2_X}}", "updateAuthor": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "created": "2020-09-25T12:00:48.000+0000", "updated": "2020-09-25T12:00:48.000+0000" } ], "maxResults": 13, "total": 13, "startAt": 0 } } }