Closed kmrinmoy07 closed 5 months ago
I tested Xcode 15 Beta 5 today and seems like the issue is no longer occurring? We had the described issue during beta 1, 2, 3 and 4 of Xcode 15, but without any change in our app it now builds using beta 5. Maybe Apple changed something?
Hello!
I get an error on Xcode 15 beta 5
Failed to build module 'OneSignalFramework'; this SDK is not supported by the compiler (the SDK is built with 'Apple Swift version 5.7.1 (swiftlang-5.7.1.135.3 clang-1400.0.29.51)', while this compiler is 'Apple Swift version 5.9 (swiftlang-5.9.0.124.4 clang-1500.0.38.1)'). Please select a toolchain which matches the SDK.
Please help :)
@pawellazarew Hello what package manager are you using to integrate OneSignal and which version are you using?
closing due to inactivity
@emawby I don't think this issue must be closed as it is not fixed or resolved. OneSignal team has not asked any question related to the original question, rather only commented for a different issue to @pawellazarew. You must at least give some effort to fix the original bug, rather closing it due to inactivity of other members who only had commented some different issues faced
I got the same issue when compiling.
XCode 15 beta 8.
ReactNative 0.68.2 react-native-onesignal 5.0.0
Please reopen the issue cause this bug makes the app unbuildable --- We have a deadline and we should publish it without OneSignal support.
The only way to get the app build is to remove OneSignal from the bundle.
Cycle inside MyApp; building could produce unreliable results.
Cycle details:
→ Target 'AssisiEventi': ExtractAppIntentsMetadata
○ Target 'AssisiEventi' has copy command from '/Users/bertidesign/ReactNativeProjects/myapp/ios/build/Debug-iphonesimulator/OneSignalNotificationServiceExtension.appex' to '/Users/bertidesign/ReactNativeProjects/myapp/ios/build/Debug-iphonesimulator/MyApp.app/PlugIns/OneSignalNotificationServiceExtension.appex'
○ That command depends on command in Target 'MyApp': script phase “[CP-User] [RNFB] Core Configuration”
○ Target 'AssisiEventi' has process command with output '/Users/bertidesign/ReactNativeProjects/eventiassisi/ios/build/Debug-iphonesimulator/MyApp.app/Info.plist'
○ Target 'AssisiEventi' has copy command from '/Users/bertidesign/ReactNativeProjects/eventiassisi/ios/build/Debug-iphonesimulator/OneSignalNotificationServiceExtension.appex' to '/Users/bertidesign/ReactNativeProjects/eventiassisi/ios/build/Debug-iphonesimulator/MyApp.app/PlugIns/OneSignalNotificationServiceExtension.appex'
Raw dependency cycle trace:
target: ->
node: <all> ->
command: <all> ->
node: /Users/bertidesign/ReactNativeProjects/myapp/ios/build/MyApp.build/Debug-iphonesimulator/MyApp.build/Objects-normal/arm64/ExtractedAppShortcutsMetadata.stringsdata ->
command: P0:target-MyApp-263ad1e1758b5d64964a7a4386b80ecc7ceb6b36bcfc2fb90f69ac96de4975d6-:Debug:ExtractAppIntentsMetadata ->
node: <target-MyApp-263ad1e1758b5d64964a7a4386b80ecc7ceb6b36bcfc2fb90f69ac96de4975d6--fused-phase7-copy-files> ->
command: P0:::Gate target-AssisiEventi-263ad1e1758b5d64964a7a4386b80ecc7ceb6b36bcfc2fb90f69ac96de4975d6--fused-phase7-copy-files ->
node: <Copy /Users/bertidesign/ReactNativeProjects/eventiassisi/ios/build/Debug-iphonesimulator/AssisiEventi.app/PlugIns/OneSignalNotificationServiceExtension.appex> ->
CYCLE POINT ->
command: P0:target-MyApp-263ad1e1758b5d64964a7a4386b80ecc7ceb6b36bcfc2fb90f69ac96de4975d6-:Debug:Copy /Users/bertidesign/ReactNativeProjects/myapp/ios/build/Debug-iphonesimulator/MyApp.app/PlugIns/OneSignalNotificationServiceExtension.appex /Users/bertidesign/ReactNativeProjects/myapp/ios/build/Debug-iphonesimulator/OneSignalNotificationServiceExtension.appex ->
node: <target-MyApp-263ad1e1758b5d64964a7a4386b80ecc7ceb6b36bcfc2fb90f69ac96de4975d6--fused-phase6--cp--embed-pods-frameworks> ->
command: P0:::Gate target-MyApp-263ad1e1758b5d64964a7a4386b80ecc7ceb6b36bcfc2fb90f69ac96de4975d6--fused-phase6--cp--embed-pods-frameworks ->
node: /Users/bertidesign/ReactNativeProjects/myapp/ios/build/MyApp.build/Debug-iphonesimulator/AssisiEventi.build/Script-0A47482E93F79F0C0F74CFED.sh ->
command: P2:target-MyApp-263ad1e1758b5d64964a7a4386b80ecc7ceb6b36bcfc2fb90f69ac96de4975d6-:Debug:WriteAuxiliaryFile /Users/bertidesign/ReactNativeProjects/myapp/ios/build/MyApp.build/Debug-iphonesimulator/AssisiEventi.build/Script-0A47482E93F79F0C0F74CFED.sh ->
node: <target-MyApp-263ad1e1758b5d64964a7a4386b80ecc7ceb6b36bcfc2fb90f69ac96de4975d6--fused-phase5--cp-user---rnfb--core-configuration> ->
command: P0:::Gate target-MyApp-263ad1e1758b5d64964a7a4386b80ecc7ceb6b36bcfc2fb90f69ac96de4975d6--fused-phase5--cp-user---rnfb--core-configuration ->
node: <execute-shell-script-263ad1e1758b5d64964a7a4386b80ecc0722aafc4b5df2ed7f5b7da2de36f862-target-MyApp-263ad1e1758b5d64964a7a4386b80ecc7ceb6b36bcfc2fb90f69ac96de4975d6-> ->
command: P2:target-MyApp-263ad1e1758b5d64964a7a4386b80ecc7ceb6b36bcfc2fb90f69ac96de4975d6-:Debug:PhaseScriptExecution [CP-User] [RNFB] Core Configuration /Users/bertidesign/ReactNativeProjects/myapp/ios/build/MyApp.build/Debug-iphonesimulator/MyApp.build/Script-1AEDF60AA9514184FF29226C.sh ->
node: /Users/bertidesign/ReactNativeProjects/myapp/ios/build/Debug-iphonesimulator/MyApp.app/Info.plist/ ->
directoryTreeSignature: o ->
directoryContents: /Users/bertidesign/ReactNativeProjects/myapp/ios/build/Debug-iphonesimulator/MyApp.app/Info.plist ->
node: /Users/bertidesign/ReactNativeProjects/myapp/ios/build/Debug-iphonesimulator/MyApp.app/Info.plist ->
command: P0:target-MyApp-263ad1e1758b5d64964a7a4386b80ecc7ceb6b36bcfc2fb90f69ac96de4975d6-:Debug:ProcessInfoPlistFile /Users/bertidesign/ReactNativeProjects/myapp/ios/build/Debug-iphonesimulator/MyApp.app/Info.plist /Users/bertidesign/ReactNativeProjects/myapp/ios/MyApp/Info.plist ->
node: /Users/bertidesign/ReactNativeProjects/myapp/ios/build/Debug-iphonesimulator/MyApp.app/PlugIns/OneSignalNotificationServiceExtension.appex ->
command: P0:target-MyApp-263ad1e1758b5d64964a7a4386b80ecc7ceb6b36bcfc2fb90f69ac96de4975d6-:Debug:Copy /Users/bertidesign/ReactNativeProjects/myapp/ios/build/Debug-iphonesimulator/MyApp.app/PlugIns/OneSignalNotificationServiceExtension.appex /Users/bertidesign/ReactNativeProjects/myapp/ios/build/Debug-iphonesimulator/OneSignalNotificationServiceExtension.appex
I would try the following: Remove OneSignal from your NotificationServiceExtension section of your podfile completely (keep it in your main target if you are on iOS native. If you are on another platform it will be included by that platform's onesignal dependency). Then in Xcode navigate to the Notification Service Extension project settings and add the following XCFrameworks as dependencies: OneSignalCore.xcframework OneSignalOutcomes.xcframework OneSignalExtension.xcframework
It should now look like this
@emawby i am able to fix the issue by removing OneSignalNotificationServiceExtension from my app's main target, and still having OneSignal framework in both my app's main target and in OneSignalNotificationServiceExtension target. notification's are working fine without including OneSignalNotificationServiceExtension in my app's main target
@kmrinmoy07 If you do not include the NotificationServiceExtension you are able to receive push, but you will be missing many features such as images, custom buttons, confirmed deliveries, etc. By removing the NSE from the main target you are just not using the NSE at all so it would not find a circular dependency.
@emawby i am still able to find images in my notifications. as you have suggested this is not a preferred solution, so what should i do to fix this issue, when i have added onesignal framework into both my app's main target and also to NSE's target, and also have added NSE into my app's main target
@kmrinmoy07 It looks like there are similar issues reported on other frameworks. Could you try this workaround from the firebase version of this issue? https://github.com/firebase/firebase-ios-sdk/issues/11471#issuecomment-1621884706
I would try the following: Remove OneSignal from your NotificationServiceExtension section of your podfile completely (keep it in your main target if you are on iOS native. If you are on another platform it will be included by that platform's onesignal dependency). Then in Xcode navigate to the Notification Service Extension project settings and add the following XCFrameworks as dependencies: OneSignalCore.xcframework OneSignalOutcomes.xcframework OneSignalExtension.xcframework
It should now look like this
Tried to apply your solution, but still got a crash on startup, seems that can't find the file, what I'm missing?
dyld[84155]: Library not loaded: @rpath/OneSignalFramework.framework/OneSignalFramework Referenced from: <9B175FE0-8935-3B6B-8B7B-DBC78EEC092B> /Users/bertidesign/Library/Developer/CoreSimulator/Devices/27245414-56BC-473A-8236-6ED5885AE344/data/Containers/Bundle/Application/E78D039F-0298-4EB7-8157-0102698A8DD9/AssisiEventi.app/AssisiEventi Reason: tried: '/Users/bertidesign/ReactNativeProjects/eventiassisi/ios/build/Debug-iphonesimulator/OneSignalFramework.framework/OneSignalFramework' (no such file), '/Library/Developer/CoreSimulator/Volumes/iOS_21A5326a/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 17.0.simruntime/Contents/Resources/RuntimeRoot/usr/lib/swift/OneSignalFramework.framework/OneSignalFramework' (no such file), '/usr/lib/swift/OneSignalFramework.framework/OneSignalFramework' (no such file, not in dyld cache), '/Users/bertidesign/Library/Developer/CoreSimulator/Devices/27245414-56BC-473A-8236-6ED5885AE344/data/Containers/Bundle/Application/E78D039F-0298-4EB7-8157-0102698A8DD9/AssisiEventi.app/Frameworks/OneSignalFramework.framework/OneSignalFramework' (no such file), '/Users/bertidesign/Library/Developer/CoreSimulator/Devices/27245414-56BC-473A-8236-6ED5885AE344/data/Containers/Bundle/Application/E78D039F-0298-4EB7-8157-0102698A8DD9/AssisiEventi.app/Frameworks/OneSignalFramework.framework/OneSignalFramework' (no such file), '/Library/Developer/CoreSimulator/Volumes/iOS_21A5326a/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 17.0.simruntime/Contents/Resources/RuntimeRoot/usr/lib/swift/OneSignalFramework.framework/OneSignalFramework' (no such file), '/usr/lib/swift/OneSignalFramework.framework/OneSignalFramework' (no such file, not in dyld cache), '/Users/bertidesign/Library/Developer/CoreSimulator/Devices/27245414-56BC-473A-8236-6ED5885AE344/data/Containers/Bundle/Application/E78D039F-0298-4EB7-8157-0102698A8DD9/AssisiEventi.app/Frameworks/OneSignalFramework.framework/OneSignalFramework' (no such file), '/Users/bertidesign/Library/Developer/CoreSimulator/Devices/27245414-56BC-473A-8236-6ED5885AE344/data/Containers/Bundle/Application/E78D039F-0298-4EB7-8157-0102698A8DD9/AssisiEventi.app/Frameworks/OneSignalFramework.framework/OneSignalFramework' (no such file), '/Library/Developer/CoreSimulator/Volumes/iOS_21A5326a/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 17.0.simruntime/Contents/Resources/RuntimeRoot/System/Library/Frameworks/OneSignalFramework.framework/OneSignalFramework' (no such file)
@bertidesign How do you import OneSignal in your main App target? Also what are your runpath search paths?
Do you have the following there @executable_path/../../Frameworks
Bump this is blocking us
I had the same issue on Xcode 15 with one signal 5.0.2
I have resolved this issue by moving the Embed Foundation Extension from below to under Copy Bundle Resources.
It is the relevant issue, you may found something useful here. https://developer.apple.com/forums/thread/731287?answerId=756374022#756374022
Hi everyone reporting, checking if if this is still an issue?
What happened?
The OneSignal SDK is not supported with latest Xcode 15 Beta versions. It gives error - Cycle inside MYAPPTARGET; building could produce unreliable results. I have checked with 5.0.0 beta version and 3.12.5 versions of the library but same result in both, I have tested including the library both using CocoaPods and Swift Package Manager but still the same.
Totally removing the library from framework, libraries and embedded content and also removing the OneSignalNotificationServiceExtension.appex from my embedded app extension of my main app's target, is the only way to run my project currently.
It didn't work even deleting the DerivedData folder or cleaning the project.
Steps to reproduce?
What did you expect to happen?
I expected the project to get build, but it fails building
OneSignal iOS SDK version
3.12.5
iOS version
15
Specific iOS version
No response
Relevant log output
Code of Conduct