- Я запускаю следующую команду, чтобы запустить приложение: < /p>
< /li>
Код: Выделить всё
rm -rf ios/Pods rm -rf ios/DerivedData rm -rf ~/Library/Developer/Xcode/DerivedData cd ios && pod install --repo-update && cd ..se64 < /code> < /li> "ios:dev": "npx react-native run-ios --scheme 'VeeraHealthPcosDev' --configuration Debug --simulator='iPhone 13'" < /code> < /li> Сборка не удается, и я получаю это сообщение об ошибке: < /p> ** BUILD FAILED ** The following build commands failed: CompileC /Users/rac/Library/Developer/Xcode/DerivedData/veerahealthpcos-fjsocvigquxpakdaumsxcfhhcmhw/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/fmt.build/Objects-normal/x86_64/format.o /Users/rac/Desktop/working/rn-veera-health-pcos/ios/Pods/fmt/src/format.cc normal x86_64 c++ com.apple.compilers.llvm.clang.1_0.compiler (in target 'fmt' from project 'Pods') Building workspace veerahealthpcos with scheme VeeraHealthPcosDev and configuration Debug (2 failures) info Run CLI with --verbose flag for more details.
[*] React Native Version: 0.69.12
/> xcode версия: 16.3 (строительная версия: 16e140) < /p>
< /li>
< /ul>
Я не могу обновить последнюю версию REACT Native, так как мой проект зависит от старых версий пакета, которые не совместимы с последней версией React. Я пробовал очистить папку сборки, переустановить зависимости и даже обновить стручки, но проблема сохраняется. Кто -нибудь еще столкнулся с этой проблемой или имел какие -либо предложения для решения?installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
# Allow arm64 (remove previous exclusion of arm64):
config.build_settings['EXCLUDED_ARCHS[sdk=iphonesimulator*]'] = 'x86_64'
config.build_settings['ONLY_ACTIVE_ARCH'] = 'YES'
end
end
installer.pods_project.targets.each do |target|
if target.name == 'fmt'
target.build_configurations.each do |config|
# Force C++17 (required by modern fmt) and libc++
config.build_settings['CLANG_CXX_LANGUAGE_STANDARD'] = 'c++17'
config.build_settings['CLANG_CXX_LIBRARY'] = 'libc++'
# Disable Clang modules (can avoid module import issues)
config.build_settings['CLANG_ENABLE_MODULES'] = 'NO'
config.build_settings['CLANG_MODULES_AUTOLINK'] = 'NO'
# (Optional) Add any needed defines, e.g. for compatibility
config.build_settings['GCC_PREPROCESSOR_DEFINITIONS'] ||= ['$(inherited)', '_LIBCPP_ENABLE_CXX17_REMOVED_UNARY_BINARY_FUNCTION']
end
end
end
installer.pods_project.targets.each do |target|
if target.name == 'OneSignalNotificationServiceExtension'
target.build_configurations.each do |config|
# Exclude x86_64 on simulator so we only build arm64
config.build_settings['EXCLUDED_ARCHS[sdk=iphonesimulator*]'] = 'x86_64'
# Only build the active arch in debug
config.build_settings['ONLY_ACTIVE_ARCH'] = 'YES'
end
end
end
< /code>
После запуска приложения я ожидал, что сборка достигнет успеха, но вместо этого я получил следующую ошибку: < /p>
The following build commands failed:
SwiftEmitModule normal x86_64 Emitting module for OneSignalNotificationServiceExtension (in target 'OneSignalNotificationServiceExtension' from project 'xyz')
SwiftCompile normal x86_64 /Users/rac/Desktop/working/rn-veera-health-pcos/ios/OneSignalNotificationServiceExtension/NotificationService.swift (in target 'OneSignalNotificationServiceExtension' from project 'xyz')
Building workspace xyz with scheme VeeraHealthPcosDev and configuration Debug
(3 failures)
< /code>
Похоже, что проблема, связанная с OneSignalNotificationserviceExtension. Любые предложения о том, как разрешить это или исправить сбой сборки, будут оценены.
Подробнее здесь: https://stackoverflow.com/questions/796 ... er-downloa
Мобильная версия