1. Xcode 配置
(1) 签名
(2)link -Objc -all_load
(3) info 添加 weixin WeChat
(4) Gerneral 添加支付宝和微信支付依赖包
2. 平台判断和路径修改
使用持久化路径:
public string PathDeal(string path)
{
if (Application.platform == RuntimePlatform.Android || Application.platform == RuntimePlatform.IPhonePlayer)
{
return Application.persistentDataPath + "/" + path;
}
else
{
return Application.streamingAssetsPath + "/" + path;
}
}
3. 重新打一份IOS平台的AB资源
4. 修改XML反序列化的方式 为 解析XML 的方式, 否则IL2CPP打出的ipa 运行会奔溃,当然也可以使用其他方式规避