Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build errors with new Modularized architecture #91

Open
azrielh opened this issue Sep 5, 2024 · 16 comments
Open

Build errors with new Modularized architecture #91

azrielh opened this issue Sep 5, 2024 · 16 comments
Labels
bug Something isn't working waiting user response

Comments

@azrielh
Copy link

azrielh commented Sep 5, 2024

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
@azrielh azrielh added the bug Something isn't working label Sep 5, 2024
@addingama
Copy link
Collaborator

@azrielh can you provide a sample repo to replicate this?

The example-app on the repository also using all of the modules and it doesn't have this issue

@azrielh
Copy link
Author

azrielh commented Sep 16, 2024

@addingama Error on my end. I didn't have the setup correct in AppDelegate from here. It should have been in didFinishLaunchingWithOptions.

Update: That didnt actually fix it. Still getting the error above.

@azrielh azrielh closed this as completed Sep 16, 2024
@azrielh azrielh reopened this Sep 17, 2024
@addingama
Copy link
Collaborator

addingama commented Sep 19, 2024

@azrielh Hey, it looks like your project tried to include all the architecture when building the app.

Can you try excluding one of the architecture? maybe exclude x86_64

CleanShot 2024-09-19 at 10 14 28@2x

@azrielh
Copy link
Author

azrielh commented Sep 19, 2024

This is our current setup. No luck unfortunately.
Screenshot 2024-09-19 at 5 49 59 PM

@addingama
Copy link
Collaborator

addingama commented Sep 19, 2024 via email

@azrielh
Copy link
Author

azrielh commented Sep 19, 2024

Can you try excluding x86_64?

@addingama Same problem unfortunately.

@addingama
Copy link
Collaborator

addingama commented Sep 20, 2024

@azrielh can you paste the complete error message again?

Please share your RN version too

@azrielh
Copy link
Author

azrielh commented Sep 20, 2024

@addingama
RN: 0.74.3

Logs are same when also excluding x86_64

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'
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'
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'

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'
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'
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'

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'
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'
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'

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'
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'
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'

It's not related to ios/Pods/Target Support Files/bildit-platform-rn-flybuy-core/bildit-platform-rn-flybuy-core-umbrella.h? It has duplicate import statements?

Should also clarify, the previous non-modularized architecture builds fine, just the new modular version.

@addingama
Copy link
Collaborator

@azrielh you can modify it directly on your local and try to build it again.

The latest example and development app has the same RN version and it doesn't have any issues when building the app.

Are you trying to generate a prod/release build?

@azrielh
Copy link
Author

azrielh commented Sep 20, 2024

@addingama Yeah, changing it locally doesn't seem to work either.

and yes, trying to generate all types of builds

@addingama
Copy link
Collaborator

@azrielh since you can't provide the sample project to reproduce the error and I don't have access to your project

Can you compare your ios project with the development-app inside this repository?

@addingama
Copy link
Collaborator

@azrielh can you also include arm64 to the excluded architecture?

@addingama
Copy link
Collaborator

@azrielh can you try adding this on the Podfile post_install?

 post_install do |installer|
    react_native_post_install(installer)

    // add this section
    installer.pods_project.build_configurations.each do |config|
      config.build_settings["EXCLUDED_ARCHS[sdk=iphonesimulator*]"] = "arm64"
    end
    installer.pods_project.targets.each do |target|
      target.build_configurations.each do |config|
        config.build_settings["ONLY_ACTIVE_ARCH"] = 'NO'
        config.build_settings["EXCLUDED_ARCHS[sdk=iphonesimulator*]"] = 'arm64'
        # config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '11'
        # config.build_settings["DEVELOPMENT_TEAM"] = ''
      end
    end
    installer.pods_project.build_configurations.each do |config|
      config.build_settings["ONLY_ACTIVE_ARCH"] = 'NO'
      config.build_settings["EXCLUDED_ARCHS[sdk=iphonesimulator*]"] = 'arm64'
      config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '11'
      config.build_settings['EXPANDED_CODE_SIGN_IDENTITY'] = ""
      config.build_settings['CODE_SIGNING_REQUIRED'] = "NO"
      config.build_settings['CODE_SIGNING_ALLOWED'] = "NO"
    end
    // end section
  end

@azrielh
Copy link
Author

azrielh commented Sep 27, 2024

@addingama No luck unfortunately.

@addingama
Copy link
Collaborator

addingama commented Sep 27, 2024 via email

@azrielh
Copy link
Author

azrielh commented Sep 28, 2024

M1 Pro
14.6.1 Sonoma
Xcode - 15.4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working waiting user response
Projects
None yet
Development

No branches or pull requests

2 participants