После обновления сборка Android работает нормально. Однако при сборке версии iOS я сталкиваюсь со следующей ошибкой во время процесса сборки.
В рамках миграции я переключился в режим Bridgeless и создал новый файл AppDelegate.swift вместе с необходимыми файлами заголовков моста (ранее я использовал AppDelegate.mm).
Я уже безуспешно пробовал следующие шаги:
Переустановил все зависимости (node_modules, Pods, и т. д.)
Очистил сборку и перекомпилировал
Следуя документации по миграции
Я прилагаю для справки сведения о моем package.json, Podfile и AppDelegate.swift.
Может ли кто-нибудь помочь мне определить, ч т о м о ж е т б ы т ь п р и ч и н о й э т о й п р о б л е м ы ? Б у д е м о ч е н ь п р и з н а т е л ь н ы з а л ю б ы е п р е д л о ж е н и я и р е к о м е н д а ц и и ! < / p > < b r / > О ш и б к и в X c o d e ( в е р с и я X c o d e 1 6 . 3 ) < / p > < b r / > < c o d e > M o d u l e m a p f i l e ' / U s e r s / u s r 1 / L i b r a r y / D e v e l o p e r / X c o d e / D e r i v e d D a t a / M y A p p - f e n b z z a u p g e b b s a x h z g l n y n n c v u a / B u i l d / P r o d u c t s / D e b u g - i p h o n e s i m u l a t o r / F i r e b a s e C o r e I n t e r n a l / F i r e b a s e C o r e I n t e r n a l . m o d u l e m a p ' n o t f o u n d < b r / > < b r / > M o d u l e m a p f i l e ' / U s e r s / u s r 1 / L i b r a r y / D e v e l o p e r / X c o d e / D e r i v e d D a t a / M y A p p - f e n b z z a u p g e b b s a x h z g l n y n n c v u a / B u i l d / P r o d u c t s / D e b u g - i p h o n e s i m u l a t o r / F i r e b a s e C r a s h l y t i c s / F i r e b a s e C r a s h l y t i c s . m o d u l e m a p ' n o t f o u n d < b r / > < b r / > M o d u l e m a p f i l e ' / U s e r s / u s r 1 / L i b r a r y / D e v e l o p e r / X c o d e / D e r i v e d D a t a / M y A p p - f e n b z z a u p g e b b s a x h z g l n y n n c v u a / B u i l d / P r o d u c t s / D e b u g - i p h o n e s i m u l a t o r / F i r e b a s e R e m o t e C o n f i g I n t e r o p / F i r e b a s e R e m o t e C o n f i g I n t e r o p . m o d u l e m a p ' n o t f o u n d < b r / > < b r / > M o d u l e m a p f i l e ' / U s e r s / u s r 1 / L i b r a r y / D e v e l o p e r / X c o d e / D e r i v e d D a t a / M y A p p - f e n b z z a u p g e b b s a x h z g l n y n n c v u a / B u i l d / P r o d u c t s / D e b u g - i p h o n e s i m u l a t o r / F i r e b a s e S e s s i o n s / F i r e b a s e S e s s i o n s . m o d u l e m a p ' n o t f o u n d < b r / > < b r / > M o d u l e m a p f i l e ' / U s e r s / u s r 1 / L i b r a r y / D e v e l o p e r / X c o d e / D e r i v e d D a t a / M y A p p - f e n b z z a u p g e b b s a x h z g l n y n n c v u a / B u i l d / P r o d u c t s / D e b u g - i p h o n e s i m u l a t o r / G T M A p p A u t h / G T M A p p A u t h . m o d u l e m a p ' n o t f o u n d < b r / > < b r / > M o d u l e m a p f i l e ' / U s e r s / u s r 1 / L i b r a r y / D e v e l o p e r / X c o d e / D e r i v e d D a t a / M y A p p - f e n b z z a u p g e b b s a x h z g l n y n n c v u a / B u i l d / P r o d u c t s / D e b u g - i p h o n e s i m u l a t o r / P r o m i s e s S w i f t / P r o m i s e s . m o d u l e m a p ' n o t f o u n d < b r / > < b r / > M o d u l e m a p f i l e ' / U s e r s / u s r 1 / L i b r a r y / D e v e l o p e r / X c o d e / D e r i v e d D a t a / M y A p p - f e n b z z a u p g e b b s a x h z g l n y n n c v u a / B u i l d / P r o d u c t s / D e b u g - i p h o n e s i m u l a t o r / r e a c t - n a t i v e - k e y b o a r d - c o n t r o l l e r / r e a c t _ n a t i v e _ k e y b o a r d _ c o n t r o l l e r . m o d u l e m a p ' n o t f o u n d < b r / > < b r / > M o d u l e m a p f i l e ' / W o r k s / W B 2 / r n U p g r a d e s / b u i l d 1 / a p p v 2 / i o s / P o d s / H e a d e r s / P u b l i c / A p p A u t h / A p p A u t h . m o d u l e m a p ' n o t f o u n d < b r / > < b r / > M o d u l e m a p f i l e ' / W o r k s / W B 2 / r n U p g r a d e s / b u i l d 1 / a p p v 2 / i o s / P o d s / H e a d e r s / P u b l i c / D o u b l e C o n v e r s i o n / D o u b l e C o n v e r s i o n . m o d u l e m a p ' n o t f o u n d < b r / > < b r / > M o d u l e m a p f i l e ' / W o r k s / W B 2 / r n U p g r a d e s / b u i l d 1 / a p p v 2 / i o s / P o d s / H e a d e r s / P u b l i c / F B L P r o m i s e s / P r o m i s e s O b j C . m o d u l e m a p ' n o t f o u n d < b r / > < b r / > M o d u l e m a p f i l e ' / W o r k s / W B 2 / r n U p g r a d e s / b u i l d 1 / a p p v 2 / i o s / P o d s / H e a d e r s / P u b l i c / F i r e b a s e C o r e / F i r e b a s e C o r e . m o d u l e m a p ' n o t f o u n d < b r / > < b r / > M o d u l e m a p f i l e ' / W o r k s / W B 2 / r n U p g r a d e s / b u i l d 1 / a p p v 2 / i o s / P o d s / H e a d e r s / P u b l i c / F i r e b a s e C o r e E x t e n s i o n / F i r e b a s e C o r e E x t e n s i o n . m o d u l e m a p ' n o t f o u n d < b r / > < b r / > M o d u l e m a p f i l e ' / W o r k s / W B 2 / r n U p g r a d e s / b u i l d 1 / a p p v 2 / i o s / P o d s / H e a d e r s / P u b l i c / F i r e b a s e I n s t a l l a t i o n s / F i r e b a s e I n s t a l l a t i o n s . m o d u l e m a p ' n o t f o u n d < b r / > < b r / > M o d u l e m a p f i l e ' / W o r k s / W B 2 / r n U p g r a d e s / b u i l d 1 / a p p v 2 / i o s / P o d s / H e a d e r s / P u b l i c / G T M S e s s i o n F e t c h e r / G T M S e s s i o n F e t c h e r . m o d u l e m a p ' n o t f o u n d < b r / > < b r / > M o d u l e m a p f i l e ' / W o r k s / W B 2 / r n U p g r a d e s / b u i l d 1 / a p p v 2 / i o s / P o d s / H e a d e r s / P u b l i c / G o o g l e D a t a T r a n s p o r t / G o o g l e D a t a T r a n s p o r t . m o d u l e m a p ' n o t f o u n d < b r / > < b r / > M o d u l e m a p f i l e ' / W o r k s / W B 2 / r n U p g r a d e s / b u i l d 1 / a p p v 2 / i o s / P o d s / H e a d e r s / P u b l i c / G o o g l e S i g n I n / G o o g l e S i g n I n . m o d u l e m a p ' n o t f o u n d < b r / > < b r / > M o d u l e m a p f i l e ' / W o r k s / W B 2 / r n U p g r a d e s / b u i l d 1 / a p p v 2 / i o s / P o d s / H e a d e r s / P u b l i c / G o o g l e U t i l i t i e s / G o o g l e U t i l i t i e s . m o d u l e m a p ' n o t f o u n d < b r / > < b r / > M o d u l e m a p f i l e ' / W o r k s / W B 2 / r n U p g r a d e s / b u i l d 1 / a p p v 2 / i o s / P o d s / H e a d e r s / P u b l i c / R C T D e p r e c a t i o n / R C T D e p r e c a t i o n . m o d u l e m a p ' n o t f o u n d < b r / > < b r / > M o d u l e m a p f i l e ' / W o r k s / W B 2 / r n U p g r a d e s / b u i l d 1 / a p p v 2 / i o s / P o d s / H e a d e r s / P u b l i c / R C T F a b r i c / R e a c t - R C T F a b r i c . m o d u l e m a p ' n o t f o u n d < b r / > < b r / > M o d u l e m a p f i l e ' / W o r k s / W B 2 / r n U p g r a d e s / b u i l d 1 / a p p v 2 / i o s / P o d s / H e a d e r s / P u b l i c / R C T R u n t i m e / R e a c t - R C T R u n t i m e . m o d u l e m a p ' n o t f o u n d < b r / > < b r / > M o d u l e m a p f i l e ' / W o r k s / W B 2 / r n U p g r a d es/build1/appv2/ios/Pods/Headers/Public/RCTTypeSafety/RCTTypeSafety.modulemap' not found
Module map file '/Works/WB2/rnUpgrades/build1/appv2/ios/Pods/Headers/Public/RNReanimated/RNReanimated.modulemap' not found
Module map file '/Works/WB2/rnUpgrades/build1/appv2/ios/Pods/Headers/Public/RNWorklets/RNWorklets.modulemap' not found
Module map file '/Works/WB2/rnUpgrades/build1/appv2/ios/Pods/Headers/Public/React/React-Core.modulemap' not found
Module map file '/Works/WB2/rnUpgrades/build1/appv2/ios/Pods/Headers/Public/ReactAppDependencyProvider/ReactAppDependencyProvider.modulemap' not found
Module map file '/Works/WB2/rnUpgrades/build1/appv2/ios/Pods/Headers/Public/ReactCodegen/ReactCodegen.modulemap' not found
Module map file '/Works/WB2/rnUpgrades/build1/appv2/ios/Pods/Headers/Public/ReactCommon/ReactCommon.modulemap' not found
Module map file '/Works/WB2/rnUpgrades/build1/appv2/ios/Pods/Headers/Public/React_Fabric/React-Fabric.modulemap' not found
Module map file '/Works/WB2/rnUpgrades/build1/appv2/ios/Pods/Headers/Public/React_FabricComponents/React-FabricComponents.modulemap' not found
Module map file '/Works/WB2/rnUpgrades/build1/appv2/ios/Pods/Headers/Public/React_NativeModulesApple/React-NativeModulesApple.modulemap' not found
Module map file '/Works/WB2/rnUpgrades/build1/appv2/ios/Pods/Headers/Public/React_RCTAppDelegate/React-RCTAppDelegate.modulemap' not found
Module map file '/Works/WB2/rnUpgrades/build1/appv2/ios/Pods/Headers/Public/folly/RCT-Folly.modulemap' not found
Module map file '/Works/WB2/rnUpgrades/build1/appv2/ios/Pods/Headers/Public/glog/glog.modulemap' not found
Module map file '/Works/WB2/rnUpgrades/build1/appv2/ios/Pods/Headers/Public/jsi/React-jsi.modulemap' not found
Module map file '/Works/WB2/rnUpgrades/build1/appv2/ios/Pods/Headers/Public/jsinspector_modern/React-jsinspector.modulemap' not found
Module map file '/Works/WB2/rnUpgrades/build1/appv2/ios/Pods/Headers/Public/jsinspector_modern_tracing/React-jsinspectortracing.modulemap' not found
Module map file '/Works/WB2/rnUpgrades/build1/appv2/ios/Pods/Headers/Public/nanopb/nanopb.modulemap' not found
Module map file '/Works/WB2/rnUpgrades/build1/appv2/ios/Pods/Headers/Public/react_debug/React-debug.modulemap' not found
Module map file '/Works/WB2/rnUpgrades/build1/appv2/ios/Pods/Headers/Public/react_featureflags/React-featureflags.modulemap' not found
Module map file '/Works/WB2/rnUpgrades/build1/appv2/ios/Pods/Headers/Public/react_nativemodule_defaults/React-defaultsnativemodule.modulemap' not found
Module map file '/Works/WB2/rnUpgrades/build1/appv2/ios/Pods/Headers/Public/react_nativemodule_dom/React-domnativemodule.modulemap' not found
Module map file '/Works/WB2/rnUpgrades/build1/appv2/ios/Pods/Headers/Public/react_nativemodule_featureflags/React-featureflagsnativemodule.modulemap' not found
Module map file '/Works/WB2/rnUpgrades/build1/appv2/ios/Pods/Headers/Public/react_nativemodule_idlecallbacks/React-idlecallbacksnativemodule.modulemap' not found
Module map file '/Works/WB2/rnUpgrades/build1/appv2/ios/Pods/Headers/Public/react_nativemodule_microtasks/React-microtasksnativemodule.modulemap' not found
Module map file '/Works/WB2/rnUpgrades/build1/appv2/ios/Pods/Headers/Public/react_renderer_css/React-renderercss.modulemap' not found
Module map file '/Works/WB2/rnUpgrades/build1/appv2/ios/Pods/Headers/Public/react_renderer_debug/React-rendererdebug.modulemap' not found
Module map file '/Works/WB2/rnUpgrades/build1/appv2/ios/Pods/Headers/Public/react_renderer_graphics/React-graphics.modulemap' not found
Module map file '/Works/WB2/rnUpgrades/build1/appv2/ios/Pods/Headers/Public/react_renderer_imagemanager/React-ImageManager.modulemap' not found
Module map file '/Works/WB2/rnUpgrades/build1/appv2/ios/Pods/Headers/Public/react_runtime/React-jsitooling.modulemap' not found
Module map file '/Works/WB2/rnUpgrades/build1/appv2/ios/Pods/Headers/Public/react_utils/React-utils.modulemap' not found
Module map file '/Works/WB2/rnUpgrades/build1/appv2/ios/Pods/Headers/Public/reacthermes/React-hermes.modulemap' not found
Module map file '/Works/WB2/rnUpgrades/build1/appv2/ios/Pods/Headers/Public/yoga/Yoga.modulemap' not found
Мой AppDelegate.swift
import UIKit
//
import FirebaseCore
import FirebaseAnalytics // If using analytics
import FirebaseMessaging // For push notifications
import FBSDKCoreKit
import FBSDKLoginKit
import SDWebImage
import SDWebImageWebPCoder
import React
import UserNotifications
@main
class AppDelegate: UIResponder, UIApplicationDelegate, RCTBridgeDelegate, UNUserNotificationCenterDelegate {
var window: UIWindow?
var bridge: RCTBridge?
// MARK: - Application Lifecycle
func application(
_ application: UIApplication,
didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?
) -> Bool {
//
FirebaseApp.configure()
print("
// Configure Firebase Messaging (if using push notifications)
Messaging.messaging().delegate = self
print("
//
SDImageCodersManager.shared.addCoder(SDImageWebPCoder.shared)
print("
//
ApplicationDelegate.shared.application(
application,
didFinishLaunchingWithOptions: launchOptions
)
print("
//
UNUserNotificationCenter.current().delegate = self
let authOptions: UNAuthorizationOptions = [.alert, .badge, .sound]
UNUserNotificationCenter.current().requestAuthorization(
options: authOptions,
completionHandler: { granted, error in
if let error = error {
print("
} else {
print("
}
}
)
application.registerForRemoteNotifications()
//
bridge = RCTBridge(delegate: self, launchOptions: launchOptions)
//
let rootView: UIView
#if RCT_NEW_ARCH_ENABLED
// New Architecture: Use Fabric Surface Hosting View
print("
rootView = RCTFabricSurfaceHostingProxyRootView(
bridge: bridge!,
moduleName: "MyApp",
initialProperties: [:]
)
#else
// Bridge Mode: Use traditional RCTRootView
print("
rootView = RCTRootView(
bridge: bridge!,
moduleName: "MyApp",
initialProperties: [:]
)
#endif
rootView.backgroundColor = UIColor.white
//
let rootViewController = UIViewController()
rootViewController.view = rootView
window = UIWindow(frame: UIScreen.main.bounds)
window?.rootViewController = rootViewController
window?.makeKeyAndVisible()
//
showSplashScreen()
return true
}
// MARK: - RCTBridgeDelegate
func sourceURL(for bridge: RCTBridge) -> URL? {
#if DEBUG
print("
return RCTBundleURLProvider.sharedSettings().jsBundleURL(forBundleRoot: "index")
#else
print("
return Bundle.main.url(forResource: "main", withExtension: "jsbundle")
#endif
}
// MARK: - Facebook App Events
func applicationDidBecomeActive(_ application: UIApplication) {
AppEvents.shared.activateApp()
print("
}
// MARK: - Push Notifications - Device Token
func application(
_ application: UIApplication,
didRegisterForRemoteNotificationsWithDeviceToken deviceToken: Data
) {
// Firebase Messaging
Messaging.messaging().apnsToken = deviceToken
let tokenParts = deviceToken.map { data in String(format: "%02.2hhx", data) }
let token = tokenParts.joined()
print("
}
func application(
_ application: UIApplication,
didFailToRegisterForRemoteNotificationsWithError error: Error
) {
print("
}
// MARK: - Deep Linking
func application(
_ app: UIApplication,
open url: URL,
options: [UIApplication.OpenURLOptionsKey : Any] = [:]
) -> Bool {
print("
var handled = false
// Facebook Deep Linking
if ApplicationDelegate.shared.application(app, open: url, options: options) {
print("
handled = true
}
// Google Sign-In (uncomment if using)
// import GoogleSignIn at top
// if GIDSignIn.sharedInstance.handle(url) {
// print("
// handled = true
// }
// React Native Linking
if RCTLinkingManager.application(app, open: url, options: options) {
print("
handled = true
}
return handled
}
// MARK: - Universal Links
func application(
_ application: UIApplication,
continue userActivity: NSUserActivity,
restorationHandler: @escaping ([UIUserActivityRestoring]?) -> Void
) -> Bool {
print("
return RCTLinkingManager.application(
application,
continue: userActivity,
restorationHandler: restorationHandler
)
}
// MARK: - Splash Screen Helper
private func showSplashScreen() {
// Using react-native-splash-view
if let splashViewClass = NSClassFromString("SplashView") as? NSObject.Type {
let sharedInstanceSelector = NSSelectorFromString("sharedInstance")
if splashViewClass.responds(to: sharedInstanceSelector),
let splashInstance = splashViewClass.perform(sharedInstanceSelector)?.takeUnretainedValue() as? NSObject {
let showSplashSelector = NSSelectorFromString("showSplash")
if splashInstance.responds(to: showSplashSelector) {
splashInstance.perform(showSplashSelector)
print("
return
}
}
}
print("
}
}
// MARK: - UNUserNotificationCenterDelegate
extension AppDelegate {
func userNotificationCenter(
_ center: UNUserNotificationCenter,
willPresent notification: UNNotification,
withCompletionHandler completionHandler: @escaping (UNNotificationPresentationOptions) -> Void
) {
print("
// Extract notification data
let userInfo = notification.request.content.userInfo
print("
if #available(iOS 14.0, *) {
completionHandler([.badge, .sound, .banner, .list])
} else {
completionHandler([.badge, .sound, .alert])
}
}
func userNotificationCenter(
_ center: UNUserNotificationCenter,
didReceive response: UNNotificationResponse,
withCompletionHandler completionHandler: @escaping () -> Void
) {
let userInfo = response.notification.request.content.userInfo
print("
// Handle notification tap - you can pass data to React Native here
completionHandler()
}
}
// MARK: - Firebase Messaging Delegate
extension AppDelegate: MessagingDelegate {
func messaging(
_ messaging: Messaging,
didReceiveRegistrationToken fcmToken: String?
) {
print("
let dataDict: [String: String] = ["token": fcmToken ?? ""]
NotificationCenter.default.post(
name: Notification.Name("FCMToken"),
object: nil,
userInfo: dataDict
)
// Send token to React Native if needed
// You can send this via React Native event emitter
}
}
package.json
{
"name": "MyApp",
"version": "0.0.1",
"private": true,
"scripts": {
"android": "react-native run-android",
"ios": "react-native run-ios",
"ios:clean": "cd ios && rm -rf build Pods Podfile.lock && pod install && cd ..",
"pods": "cd ios && RCT_NEW_ARCH_ENABLED=1 pod install && cd ..",
"lint": "eslint .",
"start": "react-native start",
"test": "jest",
"android:prod": "react-native run-android --mode=prodDebug --appId com.myapp",
"android:prod-release": "react-native run-android --mode=prodRelease --appId com.myapp",
"android:staging-release": "react-native run-android --mode=stagingRelease --appId com.myapp.staging",
"android:staging": "react-native run-android --mode=stagingDebug --appId com.myapp.staging",
"postinstall": "patch-package"
},
"dependencies": {
"@aashu-dubey/react-native-rating-bar": "^0.2.0",
"@invertase/react-native-apple-authentication": "^2.4.1",
"@react-native-async-storage/async-storage": "^2.1.0",
"@react-native-clipboard/clipboard": "^1.15.0",
"@react-native-community/netinfo": "^11.4.1",
"@react-native-community/push-notification-ios": "^1.11.0",
"@react-native-firebase/analytics": "^21.14.0",
"@react-native-firebase/app": "^21.14.0",
"@react-native-firebase/crashlytics": "^21.14.0",
"@react-native-firebase/messaging": "^21.14.0",
"@react-native-google-signin/google-signin": "^13.1.0",
"@react-navigation/native": "^7.1.18",
"@react-navigation/native-stack": "^7.3.28",
"@rneui/themed": "^4.0.0-rc.8",
"@twotalltotems/react-native-otp-input": "^1.3.11",
"country-list-json": "^1.1.0",
"date-fns": "^4.1.0",
"expo-status-bar": "^2.2.3",
"jwt-decode": "^4.0.0",
"patch-package": "^8.0.0",
"react": "19.0.0",
"react-native": "0.79.6",
"react-native-config": "^1.5.6",
"react-native-device-info": "^14.1.1",
"react-native-fast-image": "^8.6.3",
"react-native-fbsdk-next": "^13.4.1",
"react-native-flash-message": "^0.4.2",
"react-native-gesture-handler": "^2.28.0",
"react-native-image-crop-picker": "^0.51.0",
"react-native-image-progress": "^1.2.0",
"react-native-image-zoom-viewer": "^3.0.1",
"react-native-intl-phone-input": "^1.2.27",
"react-native-keyboard-controller": "^1.19.1",
"react-native-notifications": "^5.1.0",
"react-native-phone-input": "^1.3.7",
"react-native-push-notification": "^8.1.1",
"react-native-reanimated": "^4.1.3",
"react-native-reanimated-carousel": "4.0.3",
"react-native-recaptcha-that-works": "^2.0.0",
"react-native-redux": "^1.0.12",
"react-native-render-html": "^6.3.4",
"react-native-safe-area-context": "^5.6.1",
"react-native-screens": "^4.15.2",
"react-native-select-dropdown": "^3.3.0",
"react-native-share": "^12.0.3",
"react-native-slick": "^1.6.0",
"react-native-splash-screen": "^3.3.0",
"react-native-splash-view": "^0.0.19",
"react-native-svg": "^15.14.0",
"react-native-svg-transformer": "^1.5.0",
"react-native-vector-icons": "^10.2.0",
"react-native-webview": "^13.12.5",
"react-native-worklets": "^0.6.1"
},
"devDependencies": {
"@babel/core": "^7.25.2",
"@babel/preset-env": "^7.25.3",
"@babel/runtime": "^7.25.0",
"@react-native-community/cli": "18.0.0",
"@react-native-community/cli-platform-android": "18.0.0",
"@react-native-community/cli-platform-ios": "18.0.0",
"@react-native/babel-preset": "0.79.6",
"@react-native/eslint-config": "0.79.6",
"@react-native/metro-config": "0.79.6",
"@react-native/typescript-config": "0.79.6",
"@types/jest": "^29.5.13",
"@types/react": "^19.0.0",
"@types/react-native-push-notification": "^8.1.4",
"@types/react-test-renderer": "^19.0.0",
"@types/styled-components-react-native": "^5.2.5",
"babel-plugin-transform-remove-console": "^6.9.4",
"eslint": "^8.19.0",
"jest": "^29.6.3",
"prettier": "2.8.8",
"react-test-renderer": "19.0.0",
"typescript": "5.0.4"
},
"engines": {
"node": ">=18"
}
}
Pod-файл
# Uncomment the next line to define a global platform for your project
# platform :ios, '9.0'
# Resolve react_native_pods.rb with node to allow for hoisting
require Pod::Executable.execute_command('node', ['-p',
'require.resolve(
"react-native/scripts/react_native_pods.rb",
{paths: [process.argv[1]]},
)', __dir__]).strip
platform :ios, min_ios_version_supported
# platform :ios, '15.0'
prepare_react_native_project!
linkage = ENV['USE_FRAMEWORKS'] || 'static'
if linkage != nil
Pod::UI.puts "Configuring Pod with #{linkage}ally linked Frameworks".green
use_frameworks! :linkage => linkage.to_sym
end
def shared_pod
config = use_native_modules!
pod 'SDWebImage', :modular_headers => true
pod 'SDWebImageWebPCoder', :modular_headers => true
use_react_native!(
:path => config[:reactNativePath],
:hermes_enabled => true,
:fabric_enabled => true,
:new_arch_enabled => true,
# Enables Flipper.
#
# Note that if you have use_frameworks! enabled, Flipper will not work and
# you should disable the next line.
# :flipper_configuration => flipper_config,
# An absolute path to your application root.
:app_path => "#{Pod::Config.instance.installation_root}/.."
)
end
target 'MyApp' do
config = use_native_modules!
shared_pod
# Comment the next line if you don't want to use dynamic frameworks
# use_frameworks!
# Pods for MyApp
target 'MyAppTests' do
inherit! :search_paths
# Pods for testing
end
post_install do |installer|
# https://github.com/facebook/react-nativ ... #L197-L202
react_native_post_install(
installer,
config[:reactNativePath],
:mac_catalyst_enabled => false,
# :ccache_enabled => true
)
# installer.pods_project.build_configurations.each do |config|
# config.build_settings["EXCLUDED_ARCHS[sdk=iphonesimulator*]"] = "arm64"
# end
end
end
target 'MyApp Staging' do
inherit! :complete
shared_pod
end
target 'MyApp Staging-1' do
# Comment the next line if you don't want to use dynamic frameworks
use_frameworks!
# Pods for MyApp Staging-1
end
Подробнее здесь: https://stackoverflow.com/questions/798 ... -bridgeles
Мобильная версия