I was using "react-native": "0.72.3"
with Xcode 14, and everything was working perfectly but when I updated Xcode to Xcode 15. then it is giving error like below
Note: I was using Live Activity and Dynamic Island widget extension and two notification widget extensions.
Showing Recent Messages
Cycle inside <Target>; building could produce unreliable results.
Cycle details:
→ Target '<Target>': ExtractAppIntentsMetadata
○ Target '<Target>' has copy command from '/Users/apple/Library/Developer/Xcode/DerivedData/<Target>-hifbytcglbabrcgbkmfgnzgmwpmj/Build/Products/Debug-iphoneos/LiveActivityDynamicIslandExtension.appex' to '/Users/apple/Library/Developer/Xcode/DerivedData/<Target>-hifbytcglbabrcgbkmfgnzgmwpmj/Build/Products/Debug-iphoneos/<Target>.app/PlugIns/LiveActivityDynamicIslandExtension.appex'
○ That command depends on command in Target '<Target>': script phase “[CP-User] [RNFB] Core Configuration”
○ Target '<Target>' has process command with output '/Users/apple/Library/Developer/Xcode/DerivedData/<Target>-hifbytcglbabrcgbkmfgnzgmwpmj/Build/Products/Debug-iphoneos/<Target>.app/Info.plist'
○ Target '<Target>' has copy command from '/Users/apple/Library/Developer/Xcode/DerivedData/<Target>-hifbytcglbabrcgbkmfgnzgmwpmj/Build/Products/Debug-iphoneos/LiveActivityDynamicIslandExtension.appex' to '/Users/apple/Library/Developer/Xcode/DerivedData/<Target>-hifbytcglbabrcgbkmfgnzgmwpmj/Build/Products/Debug-iphoneos/<Target>.app/PlugIns/LiveActivityDynamicIslandExtension.appex'
If you are using Firebase packages then you can try Firebase solutions otherwise you can try Other Solutions
it happens when you are using firebase pods like this in Podfile
pod 'nanopb', :modular_headers => true
pod 'FirebaseSessions', :modular_headers => true
pod 'Firebase', :modular_headers => true
pod 'FirebaseCore', :modular_headers => true
pod 'FirebaseCoreExtension', :modular_headers => true
pod 'FirebaseInstallations', :modular_headers => true
pod 'GoogleDataTransport', :modular_headers => true
pod 'FirebaseCrashlytics', :modular_headers => true
pod 'GoogleUtilities', :modular_headers => true
pod 'CleverTap-iOS-SDK', :modular_headers => true
you can choose either Manual
way or do Patch Package
way
if you wanna use :modular_headers => true
pods then you can try this solution
ProjectTarget -> Build Phases
[RNFB] Core Configuration
$(SRCROOT)/$(BUILT_PRODUCTS_DIR)/$(INFOPLIST_PATH)
from $(BUILT_PRODUCTS_DIR)/$(INFOPLIST_PATH)
4. Go to [CP_user][RNFB] Crashlytics Configuration
BuildPhase and Expland it
${DWARF_DSYM_FOLDER_PATH}/${DWARF_DSYM_FILE_NAME}/Contents/Resources/DWARF/${TARGET_NAME}
as Input Files
@react-native-firebase+app+18.3.0.patch
diff --git a/node_modules/@react-native-firebase/app/react-native.config.js b/node_modules/@react-native-firebase/app/react-native.config.js
index 8502984..de75804 100644
--- a/node_modules/@react-native-firebase/app/react-native.config.js
+++ b/node_modules/@react-native-firebase/app/react-native.config.js
@@ -10,7 +10,7 @@ module.exports = {
name: '[RNFB] Core Configuration',
path: './ios_config.sh',
execution_position: 'after_compile',
- input_files: ['$(BUILT_PRODUCTS_DIR)/$(INFOPLIST_PATH)'],
+ input_files: ['$(SRCROOT)/$(BUILT_PRODUCTS_DIR)/$(INFOPLIST_PATH)'],
},
],
},
@react-native-firebase+crashlytics+18.3.0.patch
diff --git a/node_modules/@react-native-firebase/crashlytics/react-native.config.js b/node_modules/@react-native-firebase/crashlytics/react-native.config.js
index 5f6c5f1..0fc785f 100644
--- a/node_modules/@react-native-firebase/crashlytics/react-native.config.js
+++ b/node_modules/@react-native-firebase/crashlytics/react-native.config.js
@@ -24,7 +24,6 @@ module.exports = {
path: './ios_config.sh',
execution_position: 'after_compile',
input_files: [
- '${DWARF_DSYM_FOLDER_PATH}/${DWARF_DSYM_FILE_NAME}/Contents/Resources/DWARF/${TARGET_NAME}',
'$(SRCROOT)/$(BUILT_PRODUCTS_DIR)/$(INFOPLIST_PATH)',
],
},
pod install
commandif you dont wanna use :modular_headers => true
then
'use_frameworks! :linkage => :static'
line into your Podfilepod install
command into your terminalIn build phases, move the Embed Frameworks
build phase above the Run script
. run build.
In build phases, move the Run Script
build phase to the end of the list. run build.
In build phases, move "Embed Foundation Extensions" build phase above the "[CP] Embed Pods Frameworks". run build.
File -> Workspace Settings
Advanced
buttonLegacy
radio button