{"action":"created","issue":{"url":"https://api.github.com/repos/nickoneill/PermissionScope/issues/137","labels_url":"https://api.github.com/repos/nickoneill/PermissionScope/issues/137/labels{/name}","comments_url":"https://api.github.com/repos/nickoneill/PermissionScope/issues/137/comments","events_url":"https://api.github.com/repos/nickoneill/PermissionScope/issues/137/events","html_url":"https://github.com/nickoneill/PermissionScope/issues/137","id":121402914,"number":137,"title":"App Uploaded to TestFlight Doesn't Have Notification Settings...","user":{"login":"jstheoriginal","id":5117473,"avatar_url":"https://avatars.githubusercontent.com/u/5117473?v=3","gravatar_id":"","url":"https://api.github.com/users/jstheoriginal","html_url":"https://github.com/jstheoriginal","followers_url":"https://api.github.com/users/jstheoriginal/followers","following_url":"https://api.github.com/users/jstheoriginal/following{/other_user}","gists_url":"https://api.github.com/users/jstheoriginal/gists{/gist_id}","starred_url":"https://api.github.com/users/jstheoriginal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jstheoriginal/subscriptions","organizations_url":"https://api.github.com/users/jstheoriginal/orgs","repos_url":"https://api.github.com/users/jstheoriginal/repos","events_url":"https://api.github.com/users/jstheoriginal/events{/privacy}","received_events_url":"https://api.github.com/users/jstheoriginal/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/nickoneill/PermissionScope/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-12-10T05:04:52Z","updated_at":"2015-12-10T18:35:38Z","closed_at":null,"body":"I uploaded a version of the app for internal testing and the notifications are gone and the popup only said \"Denied\" right off the bat. If I got to Settings there are no settings for notifications.\r\n\r\nWhen I tested it from Xcode as a build it worked fine...I did have to add a Build Phase Run Script though to make it upload correctly on TestFlight as Apple rejected it at upload time due to the following errors: \r\n\r\n```bash\r\nERROR ITMS-90087: \"Unsupported Architectures. The executable for BB Links.app/Frameworks/PermissionScope.framework contains unsupported architectures '[x86_64, i386]'.\"\r\nERROR ITMS-90209: \"Invalid Segment Alignment. The app binary at 'BB Links.app/Frameworks/PermissionScope.framework/PermissionScope' does not have proper segment alignment. Try rebuilding the app with the latest Xcode version.\"\r\nERROR ITMS-90125: \"The binary is invalid. The encryption info in the LC_ENCRYPTION_INFO load command is either missing or invalid, or the binary is already encrypted. This binary does not seem to have been built with Apple's linker.\"\r\n```\r\n\r\nOnce I added this build phase run script, it worked.\r\n\r\n```bash\r\nAPP_PATH=\"${TARGET_BUILD_DIR}/${WRAPPER_NAME}\"\r\n\r\n# This script loops through the frameworks embedded in the application and\r\n# removes unused architectures.\r\nfind \"$APP_PATH\" -name '*.framework' -type d | while read -r FRAMEWORK\r\ndo\r\nFRAMEWORK_EXECUTABLE_NAME=$(defaults read \"$FRAMEWORK/Info.plist\" CFBundleExecutable)\r\nFRAMEWORK_EXECUTABLE_PATH=\"$FRAMEWORK/$FRAMEWORK_EXECUTABLE_NAME\"\r\necho \"Executable is $FRAMEWORK_EXECUTABLE_PATH\"\r\n\r\nEXTRACTED_ARCHS=()\r\n\r\nfor ARCH in $ARCHS\r\ndo\r\necho \"Extracting $ARCH from $FRAMEWORK_EXECUTABLE_NAME\"\r\nlipo -extract \"$ARCH\" \"$FRAMEWORK_EXECUTABLE_PATH\" -o \"$FRAMEWORK_EXECUTABLE_PATH-$ARCH\"\r\nEXTRACTED_ARCHS+=(\"$FRAMEWORK_EXECUTABLE_PATH-$ARCH\")\r\ndone\r\n\r\necho \"Merging extracted architectures: ${ARCHS}\"\r\nlipo -o \"$FRAMEWORK_EXECUTABLE_PATH-merged\" -create \"${EXTRACTED_ARCHS[@]}\"\r\nrm \"${EXTRACTED_ARCHS[@]}\"\r\n\r\necho \"Replacing original executable with thinned version\"\r\nrm \"$FRAMEWORK_EXECUTABLE_PATH\"\r\nmv \"$FRAMEWORK_EXECUTABLE_PATH-merged\" \"$FRAMEWORK_EXECUTABLE_PATH\"\r\n\r\ndone\r\n```\r\n\r\nAny ideas if this will be fixed in the next release?"},"comment":{"url":"https://api.github.com/repos/nickoneill/PermissionScope/issues/comments/163711750","html_url":"https://github.com/nickoneill/PermissionScope/issues/137#issuecomment-163711750","issue_url":"https://api.github.com/repos/nickoneill/PermissionScope/issues/137","id":163711750,"user":{"login":"jstheoriginal","id":5117473,"avatar_url":"https://avatars.githubusercontent.com/u/5117473?v=3","gravatar_id":"","url":"https://api.github.com/users/jstheoriginal","html_url":"https://github.com/jstheoriginal","followers_url":"https://api.github.com/users/jstheoriginal/followers","following_url":"https://api.github.com/users/jstheoriginal/following{/other_user}","gists_url":"https://api.github.com/users/jstheoriginal/gists{/gist_id}","starred_url":"https://api.github.com/users/jstheoriginal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jstheoriginal/subscriptions","organizations_url":"https://api.github.com/users/jstheoriginal/orgs","repos_url":"https://api.github.com/users/jstheoriginal/repos","events_url":"https://api.github.com/users/jstheoriginal/events{/privacy}","received_events_url":"https://api.github.com/users/jstheoriginal/received_events","type":"User","site_admin":false},"created_at":"2015-12-10T18:35:38Z","updated_at":"2015-12-10T18:35:38Z","body":"this is what it shows in my Carthage folder:\r\n\r\nhttps://www.dropbox.com/s/uka1vaghhlfi7vw/Screenshot%202015-12-10%2012.35.25.png?dl=0"}}