› Executing expo-web-browser Pods/ExpoWebBrowser » Copy generated compatibility header
› Executing native-module-test Pods/TestLocalModule » Copy generated compatibility header
› Compiling Pods/Pods-nativemoduletest » Pods-nativemoduletest-dummy.m
› Packaging Pods/Pods-nativemoduletest » libPods-nativemoduletest.a
› Executing nativemoduletest » [CP] Check Pods Manifest.lock
› Executing nativemoduletest » [Expo] Configure project
› Copying ./PrivacyInfo.xcprivacy ➜ ios/nativemoduletest/PrivacyInfo.xcprivacy
› Copying ios/nativemoduletest/Supporting/Expo.plist ➜ ./Expo.plist
› Compiling nativemoduletest » SplashScreen.storyboard
11 | #endif
12 |
> 13 | #import "CustomBluetoothModule-umbrella.h"
| ^ 'CustomBluetoothModule-umbrella.h' file not found
14 | #import "CustomBluetoothModuleDevice.h"
15 |
16 | FOUNDATION_EXPORT double TestLocalModuleVersionNumber;
11 | #endif
12 |
> 13 | #import "CustomBluetoothModule-umbrella.h"
| ^ 'CustomBluetoothModule-umbrella.h' file not found
14 | #import "CustomBluetoothModuleDevice.h"
15 |
16 | FOUNDATION_EXPORT double TestLocalModuleVersionNumber;
Структура папок проекта следующая:
Как видите, существует файл CustomBluetoothModuleDevice.h, который был импортирован в CustomBluetoothModule-umbrella.h. Содержимое файла CustomBluetoothModule-umbrella.h следующее:
#import "CustomBluetoothModuleDevice.h"
Я создал минимальный воспроизводимый пример здесь: https://github.com/THPubs/native-module-test
Там пытаюсь запустить npx expo run:ios -- устройство выдаст вышеуказанную ошибку. Пожалуйста, помогите мне исправить это. Я не очень хорошо знаком со Swift.
Мой TestLocalModule.podspec:
Pod::Spec.new do |s|
s.name = 'TestLocalModule'
s.version = '1.0.0'
s.summary = 'A sample project summary'
s.description = 'A sample project description'
s.author = ''
s.homepage = 'https://docs.expo.dev/modules/'
s.platforms = {
:ios => '15.1',
:tvos => '15.1'
}
s.source = { git: '' }
s.static_framework = true
s.dependency 'ExpoModulesCore'
# Swift/Objective-C compatibility
s.pod_target_xcconfig = {
'DEFINES_MODULE' => 'YES',
}
s.source_files = "**/*.{h,m,mm,swift,hpp,cpp}"
s.vendored_frameworks = 'CustomBluetoothModule.framework'
end
Подробнее здесь: https://stackoverflow.com/questions/793 ... not-find-h