更新到 Xcode 13 后,我无法将包含 DJI-SDK、DJIWidget(包含 FFMpeg)的应用程序上传到 Testflight。当我尝试时,我得到:
Invalid CFBundleSupportedPlatforms value. The CFBundleSupportedPlatforms key in the Info.plist file in “Payload/app.app/Frameworks/FFmpeg.framework” bundle contains an invalid value, [iPhoneSimulator]. Consider removing the CFBundleSupportedPlatforms key from the Info.plist file. If this bundle is part of a third-party framework, consider contacting the developer of the framework for an update to address this issue. With error code STATE_ERROR.VALIDATION_ERROR.90542 for id f2327257-ad48-4b60-8fc8-a518da5fbac8
# relevant pods
pod 'DJI-SDK-iOS', '~> 4.16'
pod 'DJIWidget', '~> 1.6.6'
但是 FFMpeg 似乎是附加到 DJIWidget 的二进制文件框架,因此我无法直接编辑 Info.plist。有什么办法可以解决这个问题,还是我必须联系 DJI 才能真正做出改变?
最佳答案
我试图用文本编辑器编辑 Info.plist,当 plist 文件嵌入到捆绑的框架中时,这是不可能的。
我能够用 Xcode 编辑 plist 文件。在 Frameworks 文件夹中 - 右键单击 FFMpeg - 在 finder 中显示 - 使用 Xcode 打开 Info.plist 并将 CFBundleSupportedPlatforms 从 iPhoneSimulator 设置为 iPhoneOS
关于ios - (DJIWidget) FFmpeg.framework 中的无效 CFBundleSupportedPlatforms 值 iPhoneSimulator,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/71699951/