Skip to content

Build errors with new Modularized architecture #91

Description

@azrielh

Describe the bug
When updating to the new modularized architecture. There is are issues with building on iOS.
To note: We have run multiple apps from the one codebase, so might be the issue.

Additional context

error: Multiple commands produce '/Users/az/Library/Developer/Xcode/DerivedData/mobile-fuxuuszurholxbdpnoegqsaaupob/Build/Products/Sandbox-iphonesimulator/bildit-platform-rn-flybuy-core/bildit_platform_rn_flybuy_core.framework/Headers/FlyBuy-Swift.h'
    note: Target 'bildit-platform-rn-flybuy-core' (project 'Pods') has copy command from '/Users/az/code/thanx/thanx-breact/node_modules/react-native-bildit-flybuy-core/ios/Frameworks/FlyBuy.xcframework/ios-arm64/FlyBuy.framework/Headers/FlyBuy-Swift.h' to '/Users/az/Library/Developer/Xcode/DerivedData/mobile-fuxuuszurholxbdpnoegqsaaupob/Build/Products/Sandbox-iphonesimulator/bildit-platform-rn-flybuy-core/bildit_platform_rn_flybuy_core.framework/Headers/FlyBuy-Swift.h'
    note: Target 'bildit-platform-rn-flybuy-core' (project 'Pods') has copy command from '/Users/az/code/thanx/thanx-breact/node_modules/react-native-bildit-flybuy-core/ios/Frameworks/FlyBuy.xcframework/ios-arm64_x86_64-simulator/FlyBuy.framework/Headers/FlyBuy-Swift.h' to '/Users/az/Library/Developer/Xcode/DerivedData/mobile-fuxuuszurholxbdpnoegqsaaupob/Build/Products/Sandbox-iphonesimulator/bildit-platform-rn-flybuy-core/bildit_platform_rn_flybuy_core.framework/Headers/FlyBuy-Swift.h'
error: Multiple commands produce '/Users/az/Library/Developer/Xcode/DerivedData/mobile-fuxuuszurholxbdpnoegqsaaupob/Build/Products/Sandbox-iphonesimulator/bildit-platform-rn-flybuy-core/bildit_platform_rn_flybuy_core.framework/Headers/FlyBuy.h'
    note: Target 'bildit-platform-rn-flybuy-core' (project 'Pods') has copy command from '/Users/az/code/thanx/thanx-breact/node_modules/react-native-bildit-flybuy-core/ios/Frameworks/FlyBuy.xcframework/ios-arm64/FlyBuy.framework/Headers/FlyBuy.h' to '/Users/az/Library/Developer/Xcode/DerivedData/mobile-fuxuuszurholxbdpnoegqsaaupob/Build/Products/Sandbox-iphonesimulator/bildit-platform-rn-flybuy-core/bildit_platform_rn_flybuy_core.framework/Headers/FlyBuy.h'
    note: Target 'bildit-platform-rn-flybuy-core' (project 'Pods') has copy command from '/Users/az/code/thanx/thanx-breact/node_modules/react-native-bildit-flybuy-core/ios/Frameworks/FlyBuy.xcframework/ios-arm64_x86_64-simulator/FlyBuy.framework/Headers/FlyBuy.h' to '/Users/az/Library/Developer/Xcode/DerivedData/mobile-fuxuuszurholxbdpnoegqsaaupob/Build/Products/Sandbox-iphonesimulator/bildit-platform-rn-flybuy-core/bildit_platform_rn_flybuy_core.framework/Headers/FlyBuy.h'
error: Multiple commands produce '/Users/az/Library/Developer/Xcode/DerivedData/mobile-fuxuuszurholxbdpnoegqsaaupob/Build/Products/Sandbox-iphonesimulator/bildit-platform-rn-flybuy-pickup/bildit_platform_rn_flybuy_pickup.framework/Headers/FlyBuyPickup-Swift.h'
    note: Target 'bildit-platform-rn-flybuy-pickup' (project 'Pods') has copy command from '/Users/az/code/thanx/thanx-breact/node_modules/react-native-bildit-flybuy-pickup/ios/Frameworks/FlyBuyPickup.xcframework/ios-arm64/FlyBuyPickup.framework/Headers/FlyBuyPickup-Swift.h' to '/Users/az/Library/Developer/Xcode/DerivedData/mobile-fuxuuszurholxbdpnoegqsaaupob/Build/Products/Sandbox-iphonesimulator/bildit-platform-rn-flybuy-pickup/bildit_platform_rn_flybuy_pickup.framework/Headers/FlyBuyPickup-Swift.h'
    note: Target 'bildit-platform-rn-flybuy-pickup' (project 'Pods') has copy command from '/Users/az/code/thanx/thanx-breact/node_modules/react-native-bildit-flybuy-pickup/ios/Frameworks/FlyBuyPickup.xcframework/ios-arm64_x86_64-simulator/FlyBuyPickup.framework/Headers/FlyBuyPickup-Swift.h' to '/Users/az/Library/Developer/Xcode/DerivedData/mobile-fuxuuszurholxbdpnoegqsaaupob/Build/Products/Sandbox-iphonesimulator/bildit-platform-rn-flybuy-pickup/bildit_platform_rn_flybuy_pickup.framework/Headers/FlyBuyPickup-Swift.h'
error: Multiple commands produce '/Users/az/Library/Developer/Xcode/DerivedData/mobile-fuxuuszurholxbdpnoegqsaaupob/Build/Products/Sandbox-iphonesimulator/bildit-platform-rn-flybuy-pickup/bildit_platform_rn_flybuy_pickup.framework/Headers/FlyBuyPickup.h'
    note: Target 'bildit-platform-rn-flybuy-pickup' (project 'Pods') has copy command from '/Users/az/code/thanx/thanx-breact/node_modules/react-native-bildit-flybuy-pickup/ios/Frameworks/FlyBuyPickup.xcframework/ios-arm64/FlyBuyPickup.framework/Headers/FlyBuyPickup.h' to '/Users/az/Library/Developer/Xcode/DerivedData/mobile-fuxuuszurholxbdpnoegqsaaupob/Build/Products/Sandbox-iphonesimulator/bildit-platform-rn-flybuy-pickup/bildit_platform_rn_flybuy_pickup.framework/Headers/FlyBuyPickup.h'
    note: Target 'bildit-platform-rn-flybuy-pickup' (project 'Pods') has copy command from '/Users/az/code/thanx/thanx-breact/node_modules/react-native-bildit-flybuy-pickup/ios/Frameworks/FlyBuyPickup.xcframework/ios-arm64_x86_64-simulator/FlyBuyPickup.framework/Headers/FlyBuyPickup.h' to '/Users/az/Library/Developer/Xcode/DerivedData/mobile-fuxuuszurholxbdpnoegqsaaupob/Build/Products/Sandbox-iphonesimulator/bildit-platform-rn-flybuy-pickup/bildit_platform_rn_flybuy_pickup.framework/Headers/FlyBuyPickup.h'
warning: Run script build phase 'Create Symlinks to Header Folders' will be run during every build because it does not specify any outputs. To address this warning, either add output dependencies to the script phase, or configure it to run in every build by unchecking "Based on dependency analysis" in the script phase. (in target 'React-RuntimeApple' from project 'Pods')
warning: Run script build phase 'Create Symlinks to Header Folders' will be run during every build because it does not specify any outputs. To address this warning, either add output dependencies to the script phase, or configure it to run in every build by unchecking "Based on dependency analysis" in the script phase. (in target 'React-graphics' from project 'Pods')
warning: Run script build phase 'Create Symlinks to Header Folders' will be run during every build because it does not specify any outputs. To address this warning, either add output dependencies to the script phase, or configure it to run in every build by unchecking "Based on dependency analysis" in the script phase. (in target 'React-nativeconfig' from project 'Pods')
warning: Run script build phase 'Create Symlinks to Header Folders' will be run during every build because it does not specify any outputs. To address this warning, either add output dependencies to the script phase, or configure it to run in every build by unchecking "Based on dependency analysis" in the script phase. (in target 'React-utils' from project 'Pods')
warning: Run script build phase 'Bundle React Native code and images' will be run during every build because it does not specify any outputs. To address this warning, either add output dependencies to the script phase, or configure it to run in every build by unchecking "Based on dependency analysis" in the script phase. (in target 'Thanxaroo' from project 'mobile')
warning: Run script build phase 'Create Symlinks to Header Folders' will be run during every build because it does not specify any outputs. To address this warning, either add output dependencies to the script phase, or configure it to run in every build by unchecking "Based on dependency analysis" in the script phase. (in target 'React-FabricImage' from project 'Pods')
warning: Run script build phase 'Create Symlinks to Header Folders' will be run during every build because it does not specify any outputs. To address this warning, either add output dependencies to the script phase, or configure it to run in every build by unchecking "Based on dependency analysis" in the script phase. (in target 'React-Mapbuffer' from project 'Pods')
warning: Run script build phase 'Create Symlinks to Header Folders' will be run during every build because it does not specify any outputs. To address this warning, either add output dependencies to the script phase, or configure it to run in every build by unchecking "Based on dependency analysis" in the script phase. (in target 'RCT-Folly' from project 'Pods')
warning: Run script build phase '[CP-User] [RN]Check rncore' will be run during every build because it does not specify any outputs. To address this warning, either add output dependencies to the script phase, or configure it to run in every build by unchecking "Based on dependency analysis" in the script phase. (in target 'React-Fabric' from project 'Pods')
warning: Run script build phase 'Create Symlinks to Header Folders' will be run during every build because it does not specify any outputs. To address this warning, either add output dependencies to the script phase, or configure it to run in every build by unchecking "Based on dependency analysis" in the script phase. (in target 'React-Fabric' from project 'Pods')
warning: duplicate output file '/Users/az/Library/Developer/Xcode/DerivedData/mobile-fuxuuszurholxbdpnoegqsaaupob/Build/Products/Sandbox-iphonesimulator/bildit-platform-rn-flybuy-core/bildit_platform_rn_flybuy_core.framework/Headers/FlyBuy-Swift.h' on task: CpHeader /Users/az/Library/Developer/Xcode/DerivedData/mobile-fuxuuszurholxbdpnoegqsaaupob/Build/Products/Sandbox-iphonesimulator/bildit-platform-rn-flybuy-core/bildit_platform_rn_flybuy_core.framework/Headers/FlyBuy-Swift.h /Users/az/code/thanx/thanx-breact/node_modules/react-native-bildit-flybuy-core/ios/Frameworks/FlyBuy.xcframework/ios-arm64_x86_64-simulator/FlyBuy.framework/Headers/FlyBuy-Swift.h (in target 'bildit-platform-rn-flybuy-core' from project 'Pods')
warning: duplicate output file '/Users/az/Library/Developer/Xcode/DerivedData/mobile-fuxuuszurholxbdpnoegqsaaupob/Build/Products/Sandbox-iphonesimulator/bildit-platform-rn-flybuy-core/bildit_platform_rn_flybuy_core.framework/Headers/FlyBuy.h' on task: CpHeader /Users/az/Library/Developer/Xcode/DerivedData/mobile-fuxuuszurholxbdpnoegqsaaupob/Build/Products/Sandbox-iphonesimulator/bildit-platform-rn-flybuy-core/bildit_platform_rn_flybuy_core.framework/Headers/FlyBuy.h /Users/az/code/thanx/thanx-breact/node_modules/react-native-bildit-flybuy-core/ios/Frameworks/FlyBuy.xcframework/ios-arm64_x86_64-simulator/FlyBuy.framework/Headers/FlyBuy.h (in target 'bildit-platform-rn-flybuy-core' from project 'Pods')
/Users/az/code/thanx/thanx-breact/ios/Pods/Pods.xcodeproj: warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 10.0, but the range of supported deployment target versions is 12.0 to 17.5.99. (in target 'FirebaseCoreInternal-FirebaseCoreInternal_Privacy' from project 'Pods')
/Users/az/code/thanx/thanx-breact/ios/Pods/Pods.xcodeproj: warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 9.0, but the range of supported deployment target versions is 12.0 to 17.5.99. (in target 'FBSDKCoreKit-FacebookSDKStrings' from project 'Pods')
/Users/az/code/thanx/thanx-breact/ios/Pods/Pods.xcodeproj: warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 9.0, but the range of supported deployment target versions is 12.0 to 17.5.99. (in target 'RNCAsyncStorage-RNCAsyncStorage_resources' from project 'Pods')
/Users/az/code/thanx/thanx-breact/ios/Pods/Pods.xcodeproj: warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 9.0, but the range of supported deployment target versions is 12.0 to 17.5.99. (in target 'GoogleUtilities-GoogleUtilities_Privacy' from project 'Pods')
warning: Run script build phase 'Create Symlinks to Header Folders' will be run during every build because it does not specify any outputs. To address this warning, either add output dependencies to the script phase, or configure it to run in every build by unchecking "Based on dependency analysis" in the script phase. (in target 'React-Codegen' from project 'Pods')
/Users/az/code/thanx/thanx-breact/ios/Pods/Pods.xcodeproj: warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 9.0, but the range of supported deployment target versions is 12.0 to 17.5.99. (in target 'PromisesObjC-FBLPromises_Privacy' from project 'Pods')
warning: Run script build phase 'Create Symlinks to Header Folders' will be run during every build because it does not specify any outputs. To address this warning, either add output dependencies to the script phase, or configure it to run in every build by unchecking "Based on dependency analysis" in the script phase. (in target 'React-jserrorhandler' from project 'Pods')
warning: Run script build phase 'Create Symlinks to Header Folders' will be run during every build because it does not specify any outputs. To address this warning, either add output dependencies to the script phase, or configure it to run in every build by unchecking "Based on dependency analysis" in the script phase. (in target 'Yoga' from project 'Pods')
/Users/az/code/thanx/thanx-breact/ios/Pods/Pods.xcodeproj: warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 10.0, but the range of supported deployment target versions is 12.0 to 17.5.99. (in target 'FirebaseInstallations-FirebaseInstallations_Privacy' from project 'Pods')
warning: Run script build phase '[CP-User] [Hermes] Replace Hermes for the right configuration, if needed' will be run during every build because it does not specify any outputs. To address this warning, either add output dependencies to the script phase, or configure it to run in every build by unchecking "Based on dependency analysis" in the script phase. (in target 'hermes-engine' from project 'Pods')
/Users/az/code/thanx/thanx-breact/ios/Pods/Pods.xcodeproj: warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 11.0, but the range of supported deployment target versions is 12.0 to 17.5.99. (in target 'TOCropViewController-TOCropViewControllerBundle' from project 'Pods')
/Users/az/code/thanx/thanx-breact/ios/Pods/Pods.xcodeproj: warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 11.0, but the range of supported deployment target versions is 12.0 to 17.5.99. (in target 'Sentry-Sentry' from project 'Pods')
warning: Run script build phase 'Create Symlinks to Header Folders' will be run during every build because it does not specify any outputs. To address this warning, either add output dependencies to the script phase, or configure it to run in every build by unchecking "Based on dependency analysis" in the script phase. (in target 'React-RuntimeCore' from project 'Pods')
warning: Run script build phase 'Create Symlinks to Header Folders' will be run during every build because it does not specify any outputs. To address this warning, either add output dependencies to the script phase, or configure it to run in every build by unchecking "Based on dependency analysis" in the script phase. (in target 'React-ImageManager' from project 'Pods')
warning: Run script build phase 'Create Symlinks to Header Folders' will be run during every build because it does not specify any outputs. To address this warning, either add output dependencies to the script phase, or configure it to run in every build by unchecking "Based on dependency analysis" in the script phase. (in target 'fmt' from project 'Pods')
warning: Run script build phase 'Create Symlinks to Header Folders' will be run during every build because it does not specify any outputs. To address this warning, either add output dependencies to the script phase, or configure it to run in every build by unchecking "Based on dependency analysis" in the script phase. (in target 'React-RuntimeHermes' from project 'Pods')
warning: Run script build phase 'Create Symlinks to Header Folders' will be run during every build because it does not specify any outputs. To address this warning, either add output dependencies to the script phase, or configure it to run in every build by unchecking "Based on dependency analysis" in the script phase. (in target 'React-runtimescheduler' from project 'Pods')
warning: Run script build phase 'Create Symlinks to Header Folders' will be run during every build because it does not specify any outputs. To address this warning, either add output dependencies to the script phase, or configure it to run in every build by unchecking "Based on dependency analysis" in the script phase. (in target 'ReactCommon' from project 'Pods')
warning: Run script build phase 'Create Symlinks to Header Folders' will be run during every build because it does not specify any outputs. To address this warning, either add output dependencies to the script phase, or configure it to run in every build by unchecking "Based on dependency analysis" in the script phase. (in target 'React-debug' from project 'Pods')
/Users/az/code/thanx/thanx-breact/ios/Pods/Pods.xcodeproj: warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 11.0, but the range of supported deployment target versions is 12.0 to 17.5.99. (in target 'PLCrashReporter-PLCrashReporter' from project 'Pods')
/Users/az/code/thanx/thanx-breact/ios/Pods/Pods.xcodeproj: warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 11.0, but the range of supported deployment target versions is 12.0 to 17.5.99. (in target 'react-native-maps-ReactNativeMapsPrivacy' from project 'Pods')
warning: Run script build phase 'Create Symlinks to Header Folders' will be run during every build because it does not specify any outputs. To address this warning, either add output dependencies to the script phase, or configure it to run in every build by unchecking "Based on dependency analysis" in the script phase. (in target 'React-rendererdebug' from project 'Pods')
warning: Run script build phase 'Create Symlinks to Header Folders' will be run during every build because it does not specify any outputs. To address this warning, either add output dependencies to the script phase, or configure it to run in every build by unchecking "Based on dependency analysis" in the script phase. (in target 'React-NativeModulesApple' from project 'Pods')
/Users/az/code/thanx/thanx-breact/ios/Pods/Pods.xcodeproj: warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 12.0 to 17.5.99. (in target 'RNImageCropPicker-QBImagePicker' from project 'Pods')
warning: Run script build phase 'Create Symlinks to Header Folders' will be run during every build because it does not specify any outputs. To address this warning, either add output dependencies to the script phase, or configure it to run in every build by unchecking "Based on dependency analysis" in the script phase. (in target 'React-featureflags' from project 'Pods')
warning: duplicate output file '/Users/az/Library/Developer/Xcode/DerivedData/mobile-fuxuuszurholxbdpnoegqsaaupob/Build/Products/Sandbox-iphonesimulator/bildit-platform-rn-flybuy-pickup/bildit_platform_rn_flybuy_pickup.framework/Headers/FlyBuyPickup-Swift.h' on task: CpHeader /Users/az/Library/Developer/Xcode/DerivedData/mobile-fuxuuszurholxbdpnoegqsaaupob/Build/Products/Sandbox-iphonesimulator/bildit-platform-rn-flybuy-pickup/bildit_platform_rn_flybuy_pickup.framework/Headers/FlyBuyPickup-Swift.h /Users/az/code/thanx/thanx-breact/node_modules/react-native-bildit-flybuy-pickup/ios/Frameworks/FlyBuyPickup.xcframework/ios-arm64_x86_64-simulator/FlyBuyPickup.framework/Headers/FlyBuyPickup-Swift.h (in target 'bildit-platform-rn-flybuy-pickup' from project 'Pods')
warning: duplicate output file '/Users/az/Library/Developer/Xcode/DerivedData/mobile-fuxuuszurholxbdpnoegqsaaupob/Build/Products/Sandbox-iphonesimulator/bildit-platform-rn-flybuy-pickup/bildit_platform_rn_flybuy_pickup.framework/Headers/FlyBuyPickup.h' on task: CpHeader /Users/az/Library/Developer/Xcode/DerivedData/mobile-fuxuuszurholxbdpnoegqsaaupob/Build/Products/Sandbox-iphonesimulator/bildit-platform-rn-flybuy-pickup/bildit_platform_rn_flybuy_pickup.framework/Headers/FlyBuyPickup.h /Users/az/code/thanx/thanx-breact/node_modules/react-native-bildit-flybuy-pickup/ios/Frameworks/FlyBuyPickup.xcframework/ios-arm64_x86_64-simulator/FlyBuyPickup.framework/Headers/FlyBuyPickup.h (in target 'bildit-platform-rn-flybuy-pickup' from project 'Pods')

Tried to Exclude Duplicate Headers in the Podfile, but no luck.

post_install do |installer|
  installer.pods_project.targets.each do |target|
    if target.name == 'bildit-platform-rn-flybuy-core' || target.name == 'bildit-platform-rn-flybuy-pickup'
      target.build_configurations.each do |config|
        config.build_settings['EXCLUDED_SOURCE_FILE_NAMES'] = 'FlyBuy-Swift.h FlyBuy.h FlyBuyPickup-Swift.h FlyBuyPickup.h'
      end
    end
  end
end

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions