Fixed it by doing this :
- Download gen_entitlements.py
- Place it somewhere in your mac ex. /Users/youruser/gen_entitlements.py
- Open a console, go there and type chmod 777 gen_entitlements.py
- Open Xcode and go to Projects->New Build Phase->New Run script Build phase and paste this:
PHP Code:
export CODESIGN_ALLOCATE=/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/codesign_allocate
if [ "${PLATFORM_NAME}" == "iphoneos" ]; then
/Users/youruser/bin/gen_entitlements.py "my.company.${PROJECT_NAME}" "${BUILT_PRODUCTS_DIR}/${WRAPPER_NAME}/${PROJECT_NAME}.xcent";
codesign -f -s "iPhone developer" --resource-rules "${BUILT_PRODUCTS_DIR}/${WRAPPER_NAME}/ResourceRules.plist" \
--entitlements "${BUILT_PRODUCTS_DIR}/${WRAPPER_NAME}/${PROJECT_NAME}.xcent" "${BUILT_PRODUCTS_DIR}/${WRAPPER_NAME}/"
fi
Dont forget to edit this and add the proper path where your .py is.
- Build a go and you are ready to go
Bookmarks