Advertisement
Guest User

Untitled

a guest
Sep 26th, 2016
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.84 KB | None | 0 0
  1. lib_name="InjectDebug.dylib"
  2. lib_path="${BUILT_PRODUCTS_DIR}/${lib_name}"
  3. root_path="$(pwd)"
  4. resources_path="${root_path}/Resources"
  5.  
  6. bundleIDentifier=com.tencent.yzb
  7.  
  8. rm -rf "${BUILT_PRODUCTS_DIR}/${TARGET_NAME}.app"
  9. cp -rf "${resources_path}/${TARGET_NAME}.app" "${BUILT_PRODUCTS_DIR}/"
  10. chmod 777 "${BUILT_PRODUCTS_DIR}/${TARGET_NAME}.app/YXLiveVideoApp"
  11.  
  12. cp -rf "${resources_path}/embedded.mobileprovision" "${BUILT_PRODUCTS_DIR}/"
  13. cp -rf "${resources_path}/Entitlement.plist" "${BUILT_PRODUCTS_DIR}/"
  14. cp -rf "${resources_path}/pack.sh" "${BUILT_PRODUCTS_DIR}/"
  15.  
  16. cd $BUILT_PRODUCTS_DIR
  17.  
  18. /usr/libexec/PlistBuddy -c "Set :CFBundleIdentifier ${bundleIDentifier}" "${TARGET_NAME}.app/Info.plist"
  19.  
  20. ./pack.sh ${TARGET_NAME}.app "${lib_name}" embedded.mobileprovision Entitlement.plist "94VC4AJ45X"
  21.  
  22. rm embedded.mobileprovision
  23. rm Entitlement.plist
  24. rm pack.sh
  25.  
  26. cd -
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement