jpush / jpush/jpush-react-native

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

Open
#815 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Java
Stars
1.4k
Forks
348
PR merge metrics
No merged PRs in 30d

Description

你的运行环境

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

  • 插件版本:
    "jcore-react-native": "^1.9.0",
    "jpush-react-native": "^2.8.1",
  • react-native 版本:
    react-native: 0.59.8 => 0.59.8

期望效果

XCODE集成极光后编译成功

实际效果

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:
"OBJC_CLASS$_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)

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the Xcode build with React Native 0.59.8 and the listed JPush plugin versions, then inspect the iOS integration and linker output for AppTrackingTransparency and the reported undefined symbols. Done means the documented integration builds successfully without these linker errors.

Written by the indexing model from the issue text.

Assessment

Tech stack
ios, react-native
Domain
build-system, mobile
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.