jpush-react-native icon indicating copy to clipboard operation
jpush-react-native copied to clipboard

IOS pod install后 运行报错

Open FeatherJiang opened this issue 4 years ago • 3 comments

你的运行环境

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)

FeatherJiang avatar Sep 26 '21 02:09 FeatherJiang

你好,请问你解决了吗?

muyiyangyu avatar Nov 09 '21 09:11 muyiyangyu

你好,请问你解决了吗?

没有 m1芯片模拟器无法运行 我用真机调试可以

FeatherJiang avatar Nov 12 '21 07:11 FeatherJiang

根据这个教程解决了 https://stackoverflow.com/questions/63607158/xcode-building-for-ios-simulator-but-linking-in-an-object-file-built-for-ios-f

edward-tes avatar May 19 '22 01:05 edward-tes