{ "id": "173606", "key": "AC-6245", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "12217", "key": "AC", "name": "Appcelerator - INBOX", "projectCategory": { "id": "10000", "description": "", "name": "Customer Service" } }, "resolution": { "id": "7", "description": "", "name": "Invalid" }, "resolutiondate": "2019-06-10T23:42:20.000+0000", "created": "2019-05-09T00:44:31.000+0000", "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "shossain", "key": "shossain", "displayName": "Shak Hossain", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2019-06-10T23:42:20.000+0000", "status": { "description": "A resolution has been taken, and it is awaiting verification by reporter. From here issues are either reopened, or are closed.", "name": "Resolved", "id": "5", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [], "description": "The problem is that when I test the app by deploying directly to my device I was able to get the firebase cloud messaging token but when I test it in the TestFlight I don't see the fcmToken and got this error:\r\n\r\n\r\n{code:java}\r\nMay 9 09:44:32 iKone WorkZone[346] : 6.0.0 - [Firebase/InstanceID][I-IID003014] Error while reading embedded mobileprovision Error Domain=NSCocoaErrorDomain Code=260 \"The file \\M-b\\M^@\\M^\\embedded.mobileprovision\\M-b\\M^@\\M^] couldn\\M-b\\M^@\\M^Yt be opened because there is no such file.\" UserInfo={NSFilePath=/var/containers/Bundle/Application/26B2725F-4413-4C1B-83B0-511AD5D46260/WorkZone.app/embedded.mobileprovision, NSUnderlyingError=0x2827e63a0 {Error Domain=NSPOSIXErrorDomain Code=2 \"No such file or directory\"}}\r\n{code}\r\n\r\nI found similar issue here with phoneGap:\r\nhttps://github.com/arnesson/cordova-plugin-firebase/issues/981\r\n\r\nThey suggest it is a problem with the new build system.\r\n\"I had the same problem and it seems to be caused by the fact that your project/workspace is build using the new build system instead of the legacy one.\r\n\r\nSee for example following comment how to change this setting:\r\nhttps://github.com/apache/cordova-ios/issues/412\"\r\n\r\nUpon digging into Titanium's build script (/7.5.0.GA/iphone/cli/commands/_build.js), I found the blacklist and comment suggests if I remove it from the list my app will be rejected to the app store.\r\n\r\n {color:red} // blacklisted files and directories that throw an error when used and will\r\n\t// lead to a rejection when submitted{color}\r\n\tthis.blacklistDirectories = [\r\n\t\t'contents',\r\n\t\t'resources',\r\n\t\t'plugins',\r\n\t\t'watch',\r\n\t\t'_codesignature',\r\n\t\t{color:red}'embedded.mobileprovision',{color}\r\n\t\t'info.plist',\r\n\t\t'pkginfo',\r\n\t\t'assets.car',\r\n\t\t'modules',\r\n\t\t'LaunchScreen.storyboardc',\r\n\t\t'hyperloop'\r\n\t];\r\n\r\nPlease advise the best way to resolve this issue.\r\n\r\nThanks!\r\n\r\n", "attachment": [], "flagged": false, "summary": "iOS: Firebase Cloud Messaging Token Fetching Error (embedded.mobileprovision couldn't be opened)", "creator": { "name": "kenjorai", "key": "kenjorai", "displayName": "Kai Lu", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "kenjorai", "key": "kenjorai", "displayName": "Kai Lu", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Ti SDK 7.5.0\r\nXcode 10.1", "comment": { "comments": [ { "id": "448256", "author": { "name": "kenjorai", "key": "kenjorai", "displayName": "Kai Lu", "active": true, "timeZone": "America/Los_Angeles" }, "body": "OK, it turns out the error has nothing to do with the cloud messaging function.\r\n\r\nPlease feel free to close the ticket.\r\n\r\nBut I am still curious about why this error occurs and how should we do about it?", "updateAuthor": { "name": "kenjorai", "key": "kenjorai", "displayName": "Kai Lu", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2019-05-09T05:21:44.000+0000", "updated": "2019-05-09T05:21:44.000+0000" } ], "maxResults": 1, "total": 1, "startAt": 0 } } }