当我在 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:
你对此有什么想法吗?