# 修改bundle identifier
sed -i '' s/com.hs.rest/com.hs.rest1/g /Users/dcw0505/Desktop/test/test.xcodeproj/project.pbxproj
# 修改應用名
/usr/libexec/PlistBuddy -c "Set :CFBundleDisplayName $appName" /Users/dcw0505/Desktop/test/test/info.plist
如果要修改應用icon和launchimage直接替換icon和launchimage目錄裏面的圖片就可以了,用到rm移除命令,cp粘貼命令
參考鏈接: