Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
因此,只要我将 AccountID 和 Token 放在 info.plist 文件中,它就可以工作,但不适用于其他 plist 文件。我需要把它放在我们的 Environment.plist 文件中,以便为不同的环境配置 CleverTap。有没有办法做到这一点?我已经尝试过 CleverTap.instance(with: ),但它仍然无法正常工作。
Clevertap 框架将从目标 plist 文件中选择 AccountID 和 Token。 如果您想进行两种不同的配置,即一种用于测试,另一种用于生产,请为 TEST 创建另一个目标。它将再创建一个 plist。您可以在此更新您的 TEST AccountID 和令牌。
在构建时不要忘记选择正确的目标。希望这能回答你的问题。