gpt4 book ai didi

ios - Xcode 中大约 100 个错误,架构 x86_64 的 undefined symbol :upgraded react-native from 0. 59.1 到 0.60.5

转载 作者:行者123 更新时间:2023-11-29 11:26:53 24 4
gpt4 key购买 nike

我一直在尝试升级我的项目并使用 cocoapods for ios,每当我从 xcode 构建时,它都会给我 100 个与 swift 相关的错误,- 我的项目不依赖swift- 升级了所有包

错误请找截图

PackageList Screenshot !

Xcode Error Screenshot !

Xcode Error Screenshot1 !

Xcode Error Screenshot2 !

我已点击以下链接进行软件包升级 react-native-community link !

发现同样的错误flutter ! - 没试过这个

# platform :ios, '9.0'

require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules'


target 'test' do
# Uncomment the next line if you're using Swift or would like to use dynamic frameworks
# use_frameworks!

# Pods for test
# Your 'node_modules' directory is probably in the root of your project,
# but if not, adjust the `:path` accordingly
pod 'React', :path => '../node_modules/react-native/'
pod 'React-Core', :path => '../node_modules/react-native/React'
pod 'React-DevSupport', :path => '../node_modules/react-native/React'
pod 'React-fishhook', :path => '../node_modules/react-native/Libraries/fishhook'
pod 'React-RCTActionSheet', :path => '../node_modules/react-native/Libraries/ActionSheetIOS'
pod 'React-RCTPushNotification', :path => '../node_modules/react-native/Libraries/PushNotificationIOS'
pod 'React-RCTAnimation', :path => '../node_modules/react-native/Libraries/NativeAnimation'
pod 'React-RCTBlob', :path => '../node_modules/react-native/Libraries/Blob'
pod 'React-RCTImage', :path => '../node_modules/react-native/Libraries/Image'
pod 'React-RCTLinking', :path => '../node_modules/react-native/Libraries/LinkingIOS'
pod 'React-RCTNetwork', :path => '../node_modules/react-native/Libraries/Network'
pod 'React-RCTSettings', :path => '../node_modules/react-native/Libraries/Settings'
pod 'React-RCTText', :path => '../node_modules/react-native/Libraries/Text'
pod 'React-RCTVibration', :path => '../node_modules/react-native/Libraries/Vibration'
pod 'React-RCTWebSocket', :path => '../node_modules/react-native/Libraries/WebSocket'

pod 'React-cxxreact', :path => '../node_modules/react-native/ReactCommon/cxxreact'
pod 'React-jsi', :path => '../node_modules/react-native/ReactCommon/jsi'
pod 'React-jsiexecutor', :path => '../node_modules/react-native/ReactCommon/jsiexecutor'
pod 'React-jsinspector', :path => '../node_modules/react-native/ReactCommon/jsinspector'
pod 'yoga', :path => '../node_modules/react-native/ReactCommon/yoga'

pod 'DoubleConversion', :podspec => '../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec'
pod 'glog', :podspec => '../node_modules/react-native/third-party-podspecs/glog.podspec'
pod 'Folly', :podspec => '../node_modules/react-native/third-party-podspecs/Folly.podspec'

pod 'react-native-print', :path => '../node_modules/react-native-print'
pod 'react-native-webview', :path => '../node_modules/react-native-webview'
pod 'RNImageCropPicker', :path => '../node_modules/react-native-image-crop-picker'
pod 'react-native-sqlite-storage', :path => '../node_modules/react-native-sqlite-storage'
pod 'RNCAsyncStorage', :path => '../node_modules/@react-native-community/async-storage'
pod 'react-native-netinfo', :path => '../node_modules/@react-native-community/netinfo'
pod 'react-native-contacts', :path => '../node_modules/react-native-contacts'
pod 'RNFS', :path => '../node_modules/react-native-fs'
pod 'RNGestureHandler', :path => '../node_modules/react-native-gesture-handler'
pod 'react-native-html-to-pdf', :path => '../node_modules/react-native-html-to-pdf'
pod 'react-native-image-resizer', :path => '../node_modules/react-native-image-resizer'
pod 'RNShare', :path => '../node_modules/react-native-share'
pod 'react-native-splash-screen', :path => '../node_modules/react-native-splash-screen'
pod 'RNSVG', :path => '../node_modules/react-native-svg'
pod 'ReactNativePermissions', :path => '../node_modules/react-native-permissions'
pod 'lottie-react-native', :path => '../node_modules/lottie-react-native'
pod 'lottie-ios', :path => '../node_modules/lottie-ios'

pod 'Firebase/Core', '~> 6.3.0'

#pod 'OneSignal', '>= 2.9.3', '< 3.0'


# Required by RNFirebase
pod 'Firebase/Core', '~> 6.3.0'

#target 'OneSignalNotificationServiceExtension' do
# pod 'OneSignal', '>= 2.6.2', '< 3.0'
#end

post_install do |installer|
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
config.build_settings['APPLICATION_EXTENSION_API_ONLY'] = 'No'
end
end
end

use_native_modules!
end

target 'test-tvOSTests' do
inherit! :search_paths
# Pods for testing
end

target 'testTests' do
inherit! :search_paths
# Pods for testing
end

target 'test-tvOS' do
# Uncomment the next line if you're using Swift or would like to use dynamic frameworks
# use_frameworks!

end```


Expecting it should have been worked easily

最佳答案

试试这个:

  1. 在 Xcode 中打开 ios/YourAppName.xcodeproj
  2. 在左侧的项目导航器中右键单击您的应用名称,然后单击新建文件...
  3. 为项目创建一个空的 Swift 文件(确保在添加时选择 Your App Name 目标)
  4. 当 Xcode 询问时,按 Create Bridging Header 然后不要删除 Swift 文件。重新运行您的构建。

这应该可以解决问题

在github上找到:https://github.com/mxcl/PromiseKit/issues/1059#issuecomment-493925940

关于ios - Xcode 中大约 100 个错误,架构 x86_64 的 undefined symbol :upgraded react-native from 0. 59.1 到 0.60.5,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57903395/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com