jpush / jpush-react-native

JPush's officially supported React Native plugin (Android & iOS). 极光推送官方支持的 React Native 插件(Android & iOS)。
http://docs.jiguang.cn
MIT License
1.35k stars 339 forks source link

Could not find or use auto-linked framework 'AppTrackingTransparency' #815

Open Jeijie opened 3 years ago

Jeijie commented 3 years ago

你的运行环境

React Native Environment Info: System: OS: macOS 10.15.1 CPU: (8) x64 Intel(R) Core(TM) i5-8279U CPU @ 2.40GHz Memory: 214.92 MB / 8.00 GB Shell: 5.7.1 - /bin/zsh Binaries: Node: 12.16.1 - /usr/local/bin/node Yarn: 1.22.10 - /usr/local/bin/yarn npm: 6.14.8 - /usr/local/bin/npm Watchman: 4.9.0 - /usr/local/bin/watchman SDKs: iOS SDK: Platforms: iOS 13.2, DriverKit 19.0, macOS 10.15, tvOS 13.2, watchOS 6.1 Android SDK: API Levels: 23, 26, 27, 28 Build Tools: 23.0.1, 23.0.3, 26.0.3, 27.0.3, 28.0.1, 28.0.3, 29.0.3 System Images: android-23 | Android TV ARM EABI v7a, android-23 | Android TV Intel x86 Atom, android-23 | Android Wear ARM EABI v7a, android-23 | Android Wear Intel x86 Atom, android-26 | Intel x86 Atom_64 IDEs: Android Studio: 3.6 AI-192.7142.36.36.6392135 Xcode: 11.3.1/11C504 - /usr/bin/xcodebuild npmPackages: react: 16.8.3 => 16.8.3 react-native: 0.59.8 => 0.59.8 npmGlobalPackages: react-native-cli: 2.0.1 react-native-git-upgrade: 0.2.7

实际效果

Could not find or use auto-linked framework 'AppTrackingTransparency'

重现步骤

  1. 新建react-native 0.59.8 工程
  2. 按文档集成极光推送
  3. XCODE编译工程
  4. 报错 Could not find or use auto-linked framework 'AppTrackingTransparency'

Debug logs

ld: warning: Could not find or use auto-linked framework 'AppTrackingTransparency' Undefined symbols for architecture x86_64: "_OBJCCLASS$_ATTrackingManager", referenced from: objc-class-ref in libRCTJCoreModule.a(JCommonUtilities.o) "_dns_free_resource_record", referenced from: -[JCORESRVResolver processRecord:length:] in libRCTJCoreModule.a(JCORESRVResolver.o) "_dns_parse_resource_record", referenced from: -[JCORESRVResolver processRecord:length:] in libRCTJCoreModule.a(JCORESRVResolver.o) "_res_9_init", referenced from: +[JCOREMacAddressManager getDeviceMacFromMDNS:] in libRCTJCoreModule.a(JCOREMacAddressManager.o) "_res_9_ns_initparse", referenced from: +[JCOREMacAddressManager getDeviceMacFromMDNS:] in libRCTJCoreModule.a(JCOREMacAddressManager.o) "_res_9_ns_parserr", referenced from: +[JCOREMacAddressManager getDeviceMacFromMDNS:] in libRCTJCoreModule.a(JCOREMacAddressManager.o) "_res_9_query", referenced from: +[JCOREMacAddressManager getDeviceMacFromMDNS:] in libRCTJCoreModule.a(JCOREMacAddressManager.o) ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation)

finghtingjie commented 3 years ago

我也遇到这个问题,手动导入AppTrackingTransparency并没有用。看来要升级xcode或者降级jpush了。

Jeijie commented 3 years ago

降级到那个版本比较好?