{"action":"created","issue":{"url":"https://api.github.com/repos/openframeworks/openFrameworks/issues/4619","labels_url":"https://api.github.com/repos/openframeworks/openFrameworks/issues/4619/labels{/name}","comments_url":"https://api.github.com/repos/openframeworks/openFrameworks/issues/4619/comments","events_url":"https://api.github.com/repos/openframeworks/openFrameworks/issues/4619/events","html_url":"https://github.com/openframeworks/openFrameworks/issues/4619","id":118625725,"number":4619,"title":"OS X AppStore - FMOD issues","user":{"login":"danoli3","id":830748,"avatar_url":"https://avatars.githubusercontent.com/u/830748?v=3","gravatar_id":"","url":"https://api.github.com/users/danoli3","html_url":"https://github.com/danoli3","followers_url":"https://api.github.com/users/danoli3/followers","following_url":"https://api.github.com/users/danoli3/following{/other_user}","gists_url":"https://api.github.com/users/danoli3/gists{/gist_id}","starred_url":"https://api.github.com/users/danoli3/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danoli3/subscriptions","organizations_url":"https://api.github.com/users/danoli3/orgs","repos_url":"https://api.github.com/users/danoli3/repos","events_url":"https://api.github.com/users/danoli3/events{/privacy}","received_events_url":"https://api.github.com/users/danoli3/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-11-24T14:54:06Z","updated_at":"2015-11-24T17:09:13Z","closed_at":null,"body":"As discussed in this PR . https://github.com/openframeworks/openFrameworks/pull/4615\r\n\r\nThere are 4 current problems with FMOD when building for OS X (App Store).\r\n\r\n1. Using the executable path for the distribution location (this causes issues in validation).\r\n2. Providing a method for code signing the dylib (need to run a script on install to fix this).\r\n3. Outdated fmod library makes it impossible to validate app build post Xcode 7.0\r\n4. 'Your application bundle must install to \"/Applications\"'. (currently set to $HOME/Applications)"},"comment":{"url":"https://api.github.com/repos/openframeworks/openFrameworks/issues/comments/159342131","html_url":"https://github.com/openframeworks/openFrameworks/issues/4619#issuecomment-159342131","issue_url":"https://api.github.com/repos/openframeworks/openFrameworks/issues/4619","id":159342131,"user":{"login":"danoli3","id":830748,"avatar_url":"https://avatars.githubusercontent.com/u/830748?v=3","gravatar_id":"","url":"https://api.github.com/users/danoli3","html_url":"https://github.com/danoli3","followers_url":"https://api.github.com/users/danoli3/followers","following_url":"https://api.github.com/users/danoli3/following{/other_user}","gists_url":"https://api.github.com/users/danoli3/gists{/gist_id}","starred_url":"https://api.github.com/users/danoli3/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danoli3/subscriptions","organizations_url":"https://api.github.com/users/danoli3/orgs","repos_url":"https://api.github.com/users/danoli3/repos","events_url":"https://api.github.com/users/danoli3/events{/privacy}","received_events_url":"https://api.github.com/users/danoli3/received_events","type":"User","site_admin":false},"created_at":"2015-11-24T17:09:13Z","updated_at":"2015-11-24T17:09:13Z","body":"Okay have a new code signing script:\r\n```\r\n# ---- Code Sign App Package ----\r\n \r\n# WARNING: You may have to run Clean in Xcode after changing CODE_SIGN_IDENTITY!\r\n\r\n# Verify that $CODE_SIGN_IDENTITY is set\r\nif [ -z \"${CODE_SIGN_IDENTITY}\" ] ; then\r\necho \"CODE_SIGN_IDENTITY needs to be set for framework code-signing\"\r\nexit 0\r\nfi\r\n\r\nif [ -z \"${CODE_SIGN_ENTITLEMENTS}\" ] ; then\r\necho \"CODE_SIGN_ENTITLEMENTS needs to be set for framework code-signing!\"\r\n\r\nif [ \"${CONFIGURATION}\" = \"Release\" ] ; then\r\nexit 1\r\nelse\r\n# Code-signing is optional for non-release builds.\r\nexit 0\r\nfi\r\nfi\r\n\r\nITEMS=\"\"\r\n\r\nFRAMEWORKS_DIR=\"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}\"\r\necho \"$FRAMEWORKS_DIR\"\r\nif [ -d \"$FRAMEWORKS_DIR\" ] ; then\r\nFRAMEWORKS=$(find \"${FRAMEWORKS_DIR}\" -depth -type d -name \"*.framework\" -or -name \"*.dylib\" -or -name \"*.bundle\" | sed -e \"s/\\(.*framework\\)/\\1\\/Versions\\/A\\//\")\r\nRESULT=$?\r\nif [[ $RESULT != 0 ]] ; then\r\nexit 1\r\nfi\r\n\r\nITEMS=\"${FRAMEWORKS}\"\r\nfi\r\n\r\nLOGINITEMS_DIR=\"${TARGET_BUILD_DIR}/${CONTENTS_FOLDER_PATH}/Library/LoginItems/\"\r\nif [ -d \"$LOGINITEMS_DIR\" ] ; then\r\nLOGINITEMS=$(find \"${LOGINITEMS_DIR}\" -depth -type d -name \"*.app\")\r\nRESULT=$?\r\nif [[ $RESULT != 0 ]] ; then\r\nexit 1\r\nfi\r\n\r\nITEMS=\"${ITEMS}\"$'\\n'\"${LOGINITEMS}\"\r\nfi\r\n\r\n# Prefer the expanded name, if available.\r\nCODE_SIGN_IDENTITY_FOR_ITEMS=\"${EXPANDED_CODE_SIGN_IDENTITY_NAME}\"\r\nif [ \"${CODE_SIGN_IDENTITY_FOR_ITEMS}\" = \"\" ] ; then\r\n# Fall back to old behavior.\r\nCODE_SIGN_IDENTITY_FOR_ITEMS=\"${CODE_SIGN_IDENTITY}\"\r\nfi\r\n\r\necho \"Identity:\"\r\necho \"${CODE_SIGN_IDENTITY_FOR_ITEMS}\"\r\n\r\necho \"Entitlements:\"\r\necho \"${CODE_SIGN_ENTITLEMENTS}\"\r\n\r\necho \"Found:\"\r\necho \"${ITEMS}\"\r\n\r\n# Change the Internal Field Separator (IFS) so that spaces in paths will not cause problems below.\r\nSAVED_IFS=$IFS\r\nIFS=$(echo -en \"\\n\\b\")\r\n\r\n# Loop through all items.\r\nfor ITEM in $ITEMS;\r\ndo\r\necho \"Signing '${ITEM}'\"\r\ncodesign --force --verbose --sign \"${CODE_SIGN_IDENTITY_FOR_ITEMS}\" --entitlements \"${CODE_SIGN_ENTITLEMENTS}\" \"${ITEM}\"\r\nRESULT=$?\r\nif [[ $RESULT != 0 ]] ; then\r\necho \"Failed to sign '${ITEM}'.\"\r\nIFS=$SAVED_IFS\r\nexit 1\r\nfi\r\ndone\r\n\r\n# Restore $IFS.\r\nIFS=$SAVED_IFS\r\n```"}}