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

[question]: I'm getting error with this file "Debug-iphonesimulator/OneSignalNotificationServiceExtension.appex" ? #795

Closed
1 task done
tabarochristian opened this issue Dec 1, 2023 · 7 comments

Comments

@tabarochristian
Copy link

How can we help?

Failed to build iOS app
Error (Xcode): Cycle inside Runner; building could produce unreliable results.
Cycle details:
→ Target 'Runner': ExtractAppIntentsMetadata
○ Target 'Runner' has copy command from '/Users/tabaro/StudioProjects/porocab/build/ios/Debug-iphonesimulator/OneSignalNotificationServiceExtension.appex' to
'/Users/tabaro/StudioProjects/porocab/build/ios/Debug-iphonesimulator/Runner.app/PlugIns/OneSignalNotificationServiceExtension.appex'
○ That command depends on command in Target 'Runner': script phase “Thin Binary”
○ Target 'Runner' has process command with output '/Users/tabaro/StudioProjects/porocab/build/ios/Debug-iphonesimulator/Runner.app/Info.plist'
○ Target 'Runner' has copy command from '/Users/tabaro/StudioProjects/porocab/build/ios/Debug-iphonesimulator/OneSignalNotificationServiceExtension.appex' to
'/Users/tabaro/StudioProjects/porocab/build/ios/Debug-iphonesimulator/Runner.app/PlugIns/OneSignalNotificationServiceExtension.appex'

Raw dependency cycle trace:

target: ->

node: ->

command: ->

node:
/Users/tabaro/Library/Developer/Xcode/DerivedData/Runner-alidqpkwwpqtvebycvithtqfhqkh/Build/Intermediates.noindex/Runner.build/Debug-iphonesimulator/Runner.build/Objects-n
ormal/x86_64/ExtractedAppShortcutsMetadata.stringsdata ->

command: P0:target-Runner-18c1723432283e0cc55f10a6dcfd9e0288a783a885d8b0b3beb2e9f90bde3f49-:Debug:ExtractAppIntentsMetadata ->

node: ->

command: P0:::Gate target-Runner-18c1723432283e0cc55f10a6dcfd9e0288a783a885d8b0b3beb2e9f90bde3f49--fused-phase7-copy-files ->

node: <Copy /Users/tabaro/StudioProjects/porocab/build/ios/Debug-iphonesimulator/Runner.app/PlugIns/OneSignalNotificationServiceExtension.appex> ->

CYCLE POINT ->

command: P0:target-Runner-18c1723432283e0cc55f10a6dcfd9e0288a783a885d8b0b3beb2e9f90bde3f49-:Debug:Copy
/Users/tabaro/StudioProjects/porocab/build/ios/Debug-iphonesimulator/Runner.app/PlugIns/OneSignalNotificationServiceExtension.appex
/Users/tabaro/StudioProjects/porocab/build/ios/Debug-iphonesimulator/OneSignalNotificationServiceExtension.appex ->

node: ->

command: P0:::Gate target-Runner-18c1723432283e0cc55f10a6dcfd9e0288a783a885d8b0b3beb2e9f90bde3f49--fused-phase6--cp--copy-pods-resources ->

node:
/Users/tabaro/Library/Developer/Xcode/DerivedData/Runner-alidqpkwwpqtvebycvithtqfhqkh/Build/Intermediates.noindex/Runner.build/Debug-iphonesimulator/Runner.build/InputFile
List-E5612CA320E2B586A6F3595B-Pods-Runner-resources-Debug-input-files-9eb5b8bd69f3875fdc14b64578509cff-resolved.xcfilelist ->

command: P2:target-Runner-18c1723432283e0cc55f10a6dcfd9e0288a783a885d8b0b3beb2e9f90bde3f49-:Debug:WriteAuxiliaryFile
/Users/tabaro/Library/Developer/Xcode/DerivedData/Runner-alidqpkwwpqtvebycvithtqfhqkh/Build/Intermediates.noindex/Runner.build/Debug-iphonesimulator/Runner.build/InputFile
List-E5612CA320E2B586A6F3595B-Pods-Runner-resources-Debug-input-files-9eb5b8bd69f3875fdc14b64578509cff-resolved.xcfilelist ->

node: ->

command: P0:::Gate target-Runner-18c1723432283e0cc55f10a6dcfd9e0288a783a885d8b0b3beb2e9f90bde3f49--fused-phase5--cp--embed-pods-frameworks ->

node:
/Users/tabaro/Library/Developer/Xcode/DerivedData/Runner-alidqpkwwpqtvebycvithtqfhqkh/Build/Intermediates.noindex/Runner.build/Debug-iphonesimulator/Runner.build/InputFile
List-79AB0EB9401A8B9FE7A17FC7-Pods-Runner-frameworks-Debug-input-files-b7b18481911dad3306c5012b8db74907-resolved.xcfilelist ->

command: P2:target-Runner-18c1723432283e0cc55f10a6dcfd9e0288a783a885d8b0b3beb2e9f90bde3f49-:Debug:WriteAuxiliaryFile
/Users/tabaro/Library/Developer/Xcode/DerivedData/Runner-alidqpkwwpqtvebycvithtqfhqkh/Build/Intermediates.noindex/Runner.build/Debug-iphonesimulator/Runner.build/InputFile
List-79AB0EB9401A8B9FE7A17FC7-Pods-Runner-frameworks-Debug-input-files-b7b18481911dad3306c5012b8db74907-resolved.xcfilelist ->

node: ->

command: P0:::Gate target-Runner-18c1723432283e0cc55f10a6dcfd9e0288a783a885d8b0b3beb2e9f90bde3f49--fused-phase4-thin-binary ->

node:
->

command: P2:target-Runner-18c1723432283e0cc55f10a6dcfd9e0288a783a885d8b0b3beb2e9f90bde3f49-:Debug:PhaseScriptExecution Thin Binary
/Users/tabaro/Library/Developer/Xcode/DerivedData/Runner-alidqpkwwpqtvebycvithtqfhqkh/Build/Intermediates.noindex/Runner.build/Debug-iphonesimulator/Runner.build/Script-3B
06AD1E1E4923F5004D2608.sh ->

node: /Users/tabaro/StudioProjects/porocab/build/ios/Debug-iphonesimulator/Runner.app/Info.plist/ ->

directoryTreeSignature: Z ->

directoryContents: /Users/tabaro/StudioProjects/porocab/build/ios/Debug-iphonesimulator/Runner.app/Info.plist ->

node: /Users/tabaro/StudioProjects/porocab/build/ios/Debug-iphonesimulator/Runner.app/Info.plist ->

command: P0:target-Runner-18c1723432283e0cc55f10a6dcfd9e0288a783a885d8b0b3beb2e9f90bde3f49-:Debug:ProcessInfoPlistFile
/Users/tabaro/StudioProjects/porocab/build/ios/Debug-iphonesimulator/Runner.app/Info.plist /Users/tabaro/StudioProjects/porocab/ios/Runner/Info.plist ->

node: /Users/tabaro/StudioProjects/porocab/build/ios/Debug-iphonesimulator/Runner.app/PlugIns/OneSignalNotificationServiceExtension.appex ->

command: P0:target-Runner-18c1723432283e0cc55f10a6dcfd9e0288a783a885d8b0b3beb2e9f90bde3f49-:Debug:Copy
/Users/tabaro/StudioProjects/porocab/build/ios/Debug-iphonesimulator/Runner.app/PlugIns/OneSignalNotificationServiceExtension.appex
/Users/tabaro/StudioProjects/porocab/build/ios/Debug-iphonesimulator/OneSignalNotificationServiceExtension.appex

Could not build the application for the simulator.
Error launching application on iPhone Xs. ?

Code of Conduct

  • I agree to follow this project's Code of Conduct
@shaunhossain
Copy link

i face the same issue , did you find any solution ?

@emawby
Copy link
Contributor

emawby commented Dec 6, 2023

@tbro2020 Hello could you show your podfile as well as the frameworks and libraries section of the Notification service extension target in xcode?

@emawby
Copy link
Contributor

emawby commented Dec 6, 2023

Also does this workaround work for you? It appears that this issue is a duplicate
#790 (comment)

@emawby
Copy link
Contributor

emawby commented Dec 6, 2023

Duplicate of #790

@emawby emawby marked this as a duplicate of #790 Dec 6, 2023
@emawby emawby closed this as completed Dec 6, 2023
@shaunhossain
Copy link

@tbro2020 check you apple provision certificate expired or not , also check your apple config is active or not in onesignal console.

@tabarochristian
Copy link
Author

@tbro2020 Hello could you show your podfile as well as the frameworks and libraries section of the Notification service extension target in xcode?

Uncomment this line to define a global platform for your project

platform :ios, '11.0'

CocoaPods analytics sends network stats synchronously affecting flutter build latency.

ENV['COCOAPODS_DISABLE_STATS'] = 'true'

project 'Runner', {
'Debug' => :debug,
'Profile' => :release,
'Release' => :release,
}

def flutter_root
generated_xcode_build_settings_path = File.expand_path(File.join('..', 'Flutter', 'Generated.xcconfig'), FILE)
unless File.exist?(generated_xcode_build_settings_path)
raise "#{generated_xcode_build_settings_path} must exist. If you're running pod install manually, make sure flutter pub get is executed first"
end

File.foreach(generated_xcode_build_settings_path) do |line|
matches = line.match(/FLUTTER_ROOT=(.*)/)
return matches[1].strip if matches
end
raise "FLUTTER_ROOT not found in #{generated_xcode_build_settings_path}. Try deleting Generated.xcconfig, then run flutter pub get"
end

require File.expand_path(File.join('packages', 'flutter_tools', 'bin', 'podhelper'), flutter_root)

flutter_ios_podfile_setup

target 'Runner' do
use_frameworks!
use_modular_headers!

flutter_install_all_ios_pods File.dirname(File.realpath(FILE))
target 'RunnerTests' do
inherit! :search_paths
end
end

post_install do |installer|
installer.pods_project.targets.each do |target|
flutter_additional_ios_build_settings(target)
end
end

target 'OneSignalNotificationServiceExtension' do
use_frameworks!
pod 'OneSignalXCFramework', '>= 5.0.0', '< 6.0'
end

@markosole
Copy link

Check this out (as pointed obove) and additional last step that is required.

#857 (comment)

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

No branches or pull requests

4 participants