我的 Xcode 项目中有多个目标,每个目标都有一个关联的域,但又不同。
我希望为所有目标拥有相同的权利文件,并使用 PListBuddy 编写脚本来更改域的值。
我已经有一个可以在构建阶段启动并正确编辑文件的脚本:
case $TARGET_NAME in
"EN6") fireBaseUrl="FOO.app.goo.gl";;
"ES5") fireBaseUrl="BAR.app.goo.gl";;
"SVT-C4") fireBaseUrl="FOOFOO.app.goo.gl";;
"PC5") fireBaseUrl="BARBAR.app.goo.gl";;
*) fireBaseUrl="FOOBAR.app.goo.gl";;
esac
# Universal links used by Firebase
associatedDomainKey="com.apple.developer.associated-domains"
/usr/libexec/PlistBuddy -c "delete ${associatedDomainKey}" app.entitlements
/usr/libexec/PlistBuddy -c "add :${associatedDomainKey} array" -c "add :${associatedDomainKey}:0 string applinks:${fireBaseUrl}" app.entitlements
Run Code Online (Sandbox Code Playgroud)
问题是我有一个“可执行文件是用无效的权利签名的”。在设备上安装应用程序时出错。
我猜这是因为编辑后的权利文件不再与配置文件中包含的权利相对应。
你知道有没有办法做我想做的事?使用 fastlane、shell 脚本或任何东西...(我有 40 个目标,所以我真的只想为所有目标获取一个权利文件)
我想UIPageViewController在我的iOS 5.0应用程序中使用水平.
我唯一的问题是我不想要UIPageViewControllerTransitionStylePageCurl过渡.有没有办法获得像翻译这样的经典转型?
注意:即使是丑陋的黑客也会被接受,因为它会占用我以前的很多代码