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

xcode15 - react native 0.72.4 [CP-User] [RNFB] Core Configuration error #1569

Closed
sekizlipenguen opened this issue Sep 27, 2023 · 24 comments
Closed

Comments

@sekizlipenguen
Copy link

sekizlipenguen commented Sep 27, 2023

Hi,

xcode:15
"react-native": "0.72.4",

Cycle inside *; building could produce unreliable results. This usually can be resolved by moving the shell script phase '[CP-User] [RNFB] Core Configuration' so that it runs before the build phase that depends on its outputs.
Cycle details:
→ Target '*': CodeSign /Users/*/Library/Developer/Xcode/DerivedData/*-ghsfobqzgrsysccszfkqabkxxgcy/Build/Products/Debug-iphonesimulator/*.app
○ Target '*' has process command with output '/Users/*/Library/Developer/Xcode/DerivedData/*-ghsfobqzgrsysccszfkqabkxxgcy/Build/Products/Debug-iphonesimulator/*.app/Info.plist'
○ Target '*' has copy command from '/Users/*/Library/Developer/Xcode/DerivedData/*-ghsfobqzgrsysccszfkqabkxxgcy/Build/Products/Debug-iphonesimulator/OneSignalNotificationServiceExtension.appex' to '/Users/*/Library/Developer/Xcode/DerivedData/*-ghsfobqzgrsysccszfkqabkxxgcy/Build/Products/Debug-iphonesimulator/*.app/PlugIns/OneSignalNotificationServiceExtension.appex'
○ That command depends on command in Target '*': script phase “[CP-User] [RNFB] Core Configuration”


Raw dependency cycle trace:

target:  ->

node: <all> ->

command: <all> ->

node: /Users/*/Library/Developer/Xcode/DerivedData/*-ghsfobqzgrsysccszfkqabkxxgcy/Build/Products/Debug-iphonesimulator/*.app/_CodeSignature ->

command: P0:target-*-7955c8fbe0ab4408aecf35bb8f80ca637ceb6b36bcfc2fb90f69ac96de4975d6-:Debug:CodeSign /Users/*/Library/Developer/Xcode/DerivedData/*-ghsfobqzgrsysccszfkqabkxxgcy/Build/Products/Debug-iphonesimulator/*.app ->

CYCLE POINT ->

node: /Users/*/Library/Developer/Xcode/DerivedData/*-ghsfobqzgrsysccszfkqabkxxgcy/Build/Products/Debug-iphonesimulator/*.app/Info.plist/ ->

directoryTreeSignature: � ->

directoryContents: /Users/*/Library/Developer/Xcode/DerivedData/*-ghsfobqzgrsysccszfkqabkxxgcy/Build/Products/Debug-iphonesimulator/*.app/Info.plist ->

node: /Users/*/Library/Developer/Xcode/DerivedData/*-ghsfobqzgrsysccszfkqabkxxgcy/Build/Products/Debug-iphonesimulator/*.app/Info.plist ->

command: P0:target-*-7955c8fbe0ab4408aecf35bb8f80ca637ceb6b36bcfc2fb90f69ac96de4975d6-:Debug:ProcessInfoPlistFile /Users/*/Library/Developer/Xcode/DerivedData/*-ghsfobqzgrsysccszfkqabkxxgcy/Build/Products/Debug-iphonesimulator/*.app/Info.plist /Users/*/Desktop/projelerim/sekizlipenguen/cemal/*/ios/*/Info.plist ->

node: /Users/*/Library/Developer/Xcode/DerivedData/*-ghsfobqzgrsysccszfkqabkxxgcy/Build/Products/Debug-iphonesimulator/*.app/PlugIns/OneSignalNotificationServiceExtension.appex ->

command: P0:target-*-7955c8fbe0ab4408aecf35bb8f80ca637ceb6b36bcfc2fb90f69ac96de4975d6-:Debug:Copy /Users/*/Library/Developer/Xcode/DerivedData/*-ghsfobqzgrsysccszfkqabkxxgcy/Build/Products/Debug-iphonesimulator/*.app/PlugIns/OneSignalNotificationServiceExtension.appex /Users/*/Library/Developer/Xcode/DerivedData/*-ghsfobqzgrsysccszfkqabkxxgcy/Build/Products/Debug-iphonesimulator/OneSignalNotificationServiceExtension.appex ->

node: <target-*-7955c8fbe0ab4408aecf35bb8f80ca637ceb6b36bcfc2fb90f69ac96de4975d6--fused-phase6--cp-user---rnfb--core-configuration> ->

command: P0:::Gate target-*-7955c8fbe0ab4408aecf35bb8f80ca637ceb6b36bcfc2fb90f69ac96de4975d6--fused-phase6--cp-user---rnfb--core-configuration ->

node: <execute-shell-script-7955c8fbe0ab4408aecf35bb8f80ca63f4b50de62cdc6822a0c2493a9898b9cf-target-*-7955c8fbe0ab4408aecf35bb8f80ca637ceb6b36bcfc2fb90f69ac96de4975d6-> ->

command: P2:target-*-7955c8fbe0ab4408aecf35bb8f80ca637ceb6b36bcfc2fb90f69ac96de4975d6-:Debug:PhaseScriptExecution [CP-User] [RNFB] Core Configuration /Users/*/Library/Developer/Xcode/DerivedData/*-ghsfobqzgrsysccszfkqabkxxgcy/Build/Intermediates.noindex/*.build/Debug-iphonesimulator/*.build/Script-FB2FCEB9CBDD984D9867BDF5.sh ->

  node: /Users/*/Library/Developer/Xcode/DerivedData/*-ghsfobqzgrsysccszfkqabkxxgcy/Build/Products/Debug-iphonesimulator/*.app/Info.plist/


podfile


# 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
prepare_react_native_project!

# If you are using a `react-native-flipper` your iOS build will fail when `NO_FLIPPER=1` is set.
# because `react-native-flipper` depends on (FlipperKit,...) that will be excluded
#
# To fix this you can also exclude `react-native-flipper` using a `react-native.config.js`
# ```js
# module.exports = {
#   dependencies: {
#     ...(process.env.NO_FLIPPER ? { 'react-native-flipper': { platforms: { ios: null } } } : {}),
# ```
flipper_config = ENV['NO_FLIPPER'] == "1" ? FlipperConfiguration.disabled : FlipperConfiguration.enabled

linkage = ENV['USE_FRAMEWORKS']
if linkage != nil
  Pod::UI.puts "Configuring Pod with #{linkage}ally linked Frameworks".green
  use_frameworks! :linkage => linkage.to_sym
end
use_frameworks! :linkage => :static
$RNFirebaseAnalyticsWithoutAdIdSupport=true

target 'napios' do
  config = use_native_modules!

  # Flags change depending on the env values.
  flags = get_default_flags()

  use_react_native!(
    :path => config[:reactNativePath],
    # Hermes is now enabled by default. Disable by setting this flag to false.
    #:hermes_enabled => flags[:hermes_enabled],
    :fabric_enabled => flags[:fabric_enabled],
    :hermes_enabled => false,
    # 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}/.."
  )

  target 'napiosTests' do
    inherit! :complete
    # Pods for testing
  end

  post_install do |installer|
    # https://github.com/facebook/react-native/blob/main/packages/react-native/scripts/react_native_pods.rb#L197-L202
    react_native_post_install(installer,config[:reactNativePath], :mac_catalyst_enabled => false )
    __apply_Xcode_12_5_M1_post_install_workaround(installer)
    installer.pods_project.build_configurations.each do |config|
       config.build_settings["EXCLUDED_ARCHS[sdk=iphonesimulator*]"] = "arm64"
     end
  end

  # React Native Maps dependencies
  # The following line is only needed if building on an Apple silicon Mac without rosetta.
  pod 'Google-Maps-iOS-Utils', :git => 'https://github.com/Simon-TechForm/google-maps-ios-utils.git', :branch => 'feat/support-apple-silicon'
end

target 'OneSignalNotificationServiceExtension' do
  pod 'OneSignalXCFramework', '>= 3.12.3', '< 4.0'
end



@sekizlipenguen sekizlipenguen changed the title Pods_OneSignalNotificationServiceExtension not found [Bug]: xcode15 - react native 0.72.4 [CP-User] [RNFB] Core Configuration error Sep 27, 2023
@OguzEkinci
Copy link

OguzEkinci commented Sep 27, 2023

same issue here, when i added the widget extension on app

@OguzEkinci
Copy link

omg! i found something, do this:

In fact, you only need to pay attention to Xcode's prompt This usually can be resolved by moving the target's Headers build phase before Compile Sources, and then you can do it.

@AhmedHF
Copy link

AhmedHF commented Sep 27, 2023

omg! i found something, do this:

In fact, you only need to pay attention to Xcode's prompt This usually can be resolved by moving the target's Headers build phase before Compile Sources, and then you can do it.

how to
solve this issue?

@AhmedHF
Copy link

AhmedHF commented Sep 27, 2023

target's Headers not moving why?

@OguzEkinci
Copy link

move "Embed Foundation extension" before "Compile sources".
whenever your errors, mine is "Embed Foundation extension" because when i create widgetextension, i face this issue

@vishaldaher
Copy link

vishaldaher commented Sep 28, 2023

move "Embed Foundation extension" before "Compile sources". whenever your errors, mine is "Embed Foundation extension" because when i create widgetextension, i face this issue

This resolved my issue Thanks @OguzEkinci

@AhmedHF
Copy link

AhmedHF commented Sep 28, 2023

move "Embed Foundation extension" before "Compile sources". whenever your errors, mine is "Embed Foundation extension" because when i create widgetextension, i face this issue

Thanks a lot @OguzEkinci

@whyamsx
Copy link

whyamsx commented Sep 28, 2023

move "Embed Foundation extension" before "Compile sources". whenever your errors, mine is "Embed Foundation extension" because when i create widgetextension, i face this issue

Thank you! This solved the problem for me too!

@sekizlipenguen
Copy link
Author

I observed that this problem started with xcode 15. xcode 14.3.1 works without any problems.

Also, for xcode15, the cause of the problem starts after adding "OneSignalNotificationServiceExtension".

@sekizlipenguen
Copy link
Author

move "Embed Foundation extension" before "Compile sources". whenever your errors, mine is "Embed Foundation extension" because when i create widgetextension, i face this issue

Hi,
How can I do this via xcode? I didn't fully understand. Any chance of taking a screenshot?

@sekizlipenguen
Copy link
Author

Screenshot 2023-09-28 at 10 39 26

I solved this problem by ticking this. "copy only when installing"

@maderesponsively
Copy link

Screenshot 2023-09-28 at 10 39 26

I solved this problem by ticking this. "copy only when installing"

I can confirm that this worked for me.

@DiorAbjalilov
Copy link

Screenshot 2023-09-28 at 10 39 26

I solved this problem by ticking this. "copy only when installing"

Tahnks. worked for me

@wuchangming
Copy link

Screenshot 2023-09-28 at 10 39 26

I solved this problem by ticking this. "copy only when installing"

However, if checked "copy only when installing", the widget cannot be displayed on the simulator.

@wuchangming
Copy link

image
image

I fixed it by adjusting the order.

@usamaabutt
Copy link

usamaabutt commented Feb 20, 2024

Screenshot 2023-09-28 at 10 39 26

I solved this problem by ticking this. "copy only when installing"

react-native: v0.68.6
react-native-onesignal: v4.4.1
I also confirmed this works for me. Thank you very much!!!

Screenshot 2024-02-20 at 2 48 23 PM

@usamaabutt
Copy link

move "Embed Foundation extension" before "Compile sources". whenever your errors, mine is "Embed Foundation extension" because when i create widgetextension, i face this issue

I confirmed this fixed my build archived error. Thanks a lot!

@ebnersilva
Copy link

@sekizlipenguen thanks man, your solution works for me 🙏🏻

@RayanAbid
Copy link

RayanAbid commented Mar 17, 2024

move "Embed Foundation extension" before "Compile sources". whenever your errors, mine is "Embed Foundation extension" because when i create widgetextension, i face this issue

Worked for me as well Xcode 15.3 "react-native": "0.73.5", Thanks @OguzEkinci

@nameisjayant
Copy link

nameisjayant commented May 17, 2024

In my case, I move my Copy Bundle Resource above to Compile Source.

Screenshot 2024-05-17 at 11 51 44 AM

@tnson1307
Copy link

Screenshot 2023-09-28 at 10 39 26

I solved this problem by ticking this. "copy only when installing"

yes it's work for me

@charithAmila
Copy link

Screenshot 2023-09-28 at 10 39 26
I solved this problem by ticking this. "copy only when installing"

However, if checked "copy only when installing", the widget cannot be displayed on the simulator.

Try this one : #1569 (comment)

@vanhai989
Copy link

I can confirm to resolve this issue we move the [CP-User] [RNFB] Core Configuration to the end of Build Phases. I hope it can help you

@musabjaved10
Copy link

Screenshot 2023-09-28 at 10 39 26

I solved this problem by ticking this. "copy only when installing"

Fixed ! Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests