IOS requestTrackingAuthorizationWithCompletionHandler 崩溃

ios requestTrackingAuthorizationWithCompletionHandler 请求这个接口提示
This app has crashed because it attempted to access privacy-sensitive data without a usage description. The app’s Info.plist must contain an NSUserTrackingUsageDescription key with a string value explaining to the user how the app uses this data.
然后app崩溃。问题是 Info.plist我有添加了该key

<?xml version="1.0" encoding="UTF-8"?> UILaunchStoryboardName LaunchScreen CFBundleDevelopmentRegion English CFBundleDisplayName ${PRODUCT_NAME} CFBundleExecutable ${CC_EXECUTABLE_NAME} CFBundleIcons~ipad CFBundleIdentifier ${MACOSX_BUNDLE_GUI_IDENTIFIER} CFBundleInfoDictionaryVersion 6.0 CFBundleName ${PRODUCT_NAME} CFBundlePackageType APPL CFBundleShortVersionString 1.0.0 CFBundleSignature ???? CFBundleVersion 1.0 LSRequiresIPhoneOS NSAppTransportSecurity NSAllowsArbitraryLoads UIPrerenderedIcon UIRequiredDeviceCapabilities accelerometer opengles-1 UIRequiresFullScreen UIStatusBarHidden AppLovinSdkKey wHvMeZe2uDp7azkFxnE2t5pZ5_5vt__kiszcnhJqhDBwsoyz8OyoD2hyU5-EpirTXqGkFf28STdZNZk_GM3afV NSUserTrackingUsageDescription This uses device info for more personalized ads and content UISupportedInterfaceOrientations UIInterfaceOrientationPortrait

该Info.plist文件存放在工程 native/engine/ios 目录下。有懂的哥们麻烦告知一下怎么回事

你这个Info.plist,可能不是xcode工程直接引用的Info.plist,你可以直接在Xcode的Info中修改试试

问题是我在工程里搜索不到Info.plist文件。。。

微信图片_20251027115847_3197 这个?这个新建的工程导出就是红色的

cocosCreator 3.8.7