jpush / jpush/jpush-react-native

IOS pod install后 运行报错

Open
#855 3 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

你的运行环境

iMac (24-inch, M1, 2021)
MacOS 11.6
Apple M1芯片

  • 插件版本:
    "jcore-react-native": "^1.9.4",
    "jpush-react-native": "^2.8.7",
  • react-native 版本:
    "react-native": "0.65.0",

期望效果

pod install完成
ios模拟器运行成功

实际效果

pod install完成
ios模拟器运行报错
截屏2021-09-26 上午10 37 54
in /Users/adai/Desktop/qianduan
/sleepDoctor/node_modules/jcore-react-native/ios/RCTJCoreModule/libjcore-ios-2.7.1.a(JCommonLocationController.o), building for iOS Simulator, but linking in object file built for iOS, file '/Users/adai/Desktop/qianduan/sleepDoctor/node_modules/jcore-react-native/ios/RCTJCoreModule/libjcore-ios-2.7.1.a' for architecture arm64

重现步骤

  1. pod install
  2. yarn ios

Debug logs

iOS 的日志:

截屏2021-09-26 上午10 37 54 in /Users/adai/Desktop/qianduan in /Users/adai/Desktop/qianduan/sleepDoctor/node_modules/jcore-react-native/ios/RCTJCoreModule/libjcore-ios-2.7.1.a(JCommonLocationController.o), building for iOS Simulator, but linking in object file built for iOS, file '/Users/adai/Desktop/qianduan/sleepDoctor/node_modules/jcore-react-native/ios/RCTJCoreModule/libjcore-ios-2.7.1.a' for architecture [arm64](url)

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 with pod install and yarn ios using the reported React Native 0.65.0 environment. Inspect node_modules/jcore-react-native/ios/RCTJCoreModule/libjcore-ios-2.7.1.a and the simulator architecture settings; done means the iOS simulator builds and runs without the arm64 linking error.

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.