【发布时间】:2020-11-23 09:30:46
【问题描述】:
当我在 iOS 上使用 vs code 启动我的应用程序时,构建成功,但是当您更改屏幕时应用程序崩溃了。
当我打开我的 Xcode 时,构建直接失败并出现错误
fatal error: module map file '/Users/wendy/Library/Developer/Xcode/DerivedData/Klaaap-feojqlwiozdtgsczazhciamgtbgk/Build/Products/Debug-iphonesimulator/YogaKit/YogaKit.modulemap' not found
1 error generated.
这是我的Podfile:
require_relative '../node_modules/react-native/scripts/react_native_pods'
require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules'
platform :ios, '14.2'
target 'Klaaap' do
config = use_native_modules!
use_react_native!(:path => config["reactNativePath"])
pod 'RNSoundLevel', :path => '../node_modules/react-native-sound-level'
pod 'RNPermissions', :path => '../node_modules/react-native-permissions'
target 'KlaaapTests' do
inherit! :complete
# Pods for testing
end
# Enables Flipper.
#
# Note that if you have use_frameworks! enabled, Flipper will not work and
# you should disable these next few lines.
use_flipper!
post_install do |installer|
flipper_post_install(installer)
end
end
target 'Klaaap-tvOS' do
# Pods for Klaaap-tvOS
target 'Klaaap-tvOSTests' do
inherit! :search_paths
# Pods for testing
end
end
target 'WonderPushNotificationServiceExtension' do
platform :ios, '10.0'
# Pods for WonderPushNotificationServiceExtension
pod 'WonderPushExtension', '~> 3.0'
end
还有我的 Xcode:
你对此有什么想法吗?
【问题讨论】:
-
这个错误很清楚,说你试图告诉你的 cocoapods 使用一个名为
WonderPushNotificationServiceExtension的目标并且它在你的项目中不存在。检查目标的名称 -
是的,但你知道这个错误是否是我构建的问题吗?
-
是的,cocoapods 无法运行,因为您给了它无效的指令。如果 cocoapods 无法下载您的依赖项,那么您的项目将无法构建。即使这不是问题,如果您的核心关键工具之一报告错误,您也需要修复它,否则它会破坏某些东西
-
是的,当然,我只是找不到我必须更改它的地方,因为在 Xcode 中,WonderPushNotification 就在那里:(
-
除非您向我们展示,否则没有其他人可以提供帮助。在 xcode 中上传目标的屏幕截图并在此处复制您的 podfile
标签: ios xcode visual-studio-code wonderpush