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

upgrade flutter onesignal not build ios #572

Closed
brux88 opened this issue Jun 29, 2022 · 2 comments
Closed

upgrade flutter onesignal not build ios #572

brux88 opened this issue Jun 29, 2022 · 2 comments

Comments

@brux88
Copy link

brux88 commented Jun 29, 2022

hi, I updated the onesignal plugin but now it doesn't compile me anymore on ios and it gives me this error, what can it be?

Ld /Users/owner/Library/Developer/Xcode/DerivedData/Runner-ayzolztnxfdqgkajnofchsyzkfyy/Build/Products/Debug-iphonesimulator/OneSignalNotificationServiceExtension.appex/OneSignalNotificationServiceExtension normal (in target 'OneSignalNotificationServiceExtension' from project 'Runner')
    cd /Users/owner/Progetti/CityCareApp97017/ios
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -target x86_64-apple-ios12.1-simulator -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.2.sdk -L/Users/owner/Library/Developer/Xcode/DerivedData/Runner-ayzolztnxfdqgkajnofchsyzkfyy/Build/Products/Debug-iphonesimulator -F/Users/owner/Library/Developer/Xcode/DerivedData/Runner-ayzolztnxfdqgkajnofchsyzkfyy/Build/Products/Debug-iphonesimulator -F/Users/owner/Progetti/CityCareApp97017/ios/Pods/OneSignalXCFramework/iOS_SDK/OneSignalSDK/OneSignal_Core -F/Users/owner/Progetti/CityCareApp97017/ios/Pods/OneSignalXCFramework/iOS_SDK/OneSignalSDK/OneSignal_Core/OneSignalCore.xcframework/ios-arm64_armv7_armv7s -F/Users/owner/Progetti/CityCareApp97017/ios/Pods/OneSignalXCFramework/iOS_SDK/OneSignalSDK/OneSignal_Core/OneSignalCore.xcframework/ios-arm64_i386_x86_64-simulator -F/Users/owner/Progetti/CityCareApp97017/ios/Pods/OneSignalXCFramework/iOS_SDK/OneSignalSDK/OneSignal_Core/OneSignalCore.xcframework/ios-arm64_x86_64-maccatalyst -F/Users/owner/Progetti/CityCareApp97017/ios/Pods/OneSignalXCFramework/iOS_SDK/OneSignalSDK/OneSignal_Extension -F/Users/owner/Progetti/CityCareApp97017/ios/Pods/OneSignalXCFramework/iOS_SDK/OneSignalSDK/OneSignal_Extension/OneSignalExtension.xcframework/ios-arm64_armv7_armv7s -F/Users/owner/Progetti/CityCareApp97017/ios/Pods/OneSignalXCFramework/iOS_SDK/OneSignalSDK/OneSignal_Extension/OneSignalExtension.xcframework/ios-arm64_i386_x86_64-simulator -F/Users/owner/Progetti/CityCareApp97017/ios/Pods/OneSignalXCFramework/iOS_SDK/OneSignalSDK/OneSignal_Extension/OneSignalExtension.xcframework/ios-arm64_x86_64-maccatalyst -F/Users/owner/Progetti/CityCareApp97017/ios/Pods/OneSignalXCFramework/iOS_SDK/OneSignalSDK/OneSignal_Outcomes -F/Users/owner/Progetti/CityCareApp97017/ios/Pods/OneSignalXCFramework/iOS_SDK/OneSignalSDK/OneSignal_Outcomes/OneSignalOutcomes.xcframework/ios-arm64_armv7_armv7s -F/Users/owner/Progetti/CityCareApp97017/ios/Pods/OneSignalXCFramework/iOS_SDK/OneSignalSDK/OneSignal_Outcomes/OneSignalOutcomes.xcframework/ios-arm64_i386_x86_64-simulator -F/Users/owner/Progetti/CityCareApp97017/ios/Pods/OneSignalXCFramework/iOS_SDK/OneSignalSDK/OneSignal_Outcomes/OneSignalOutcomes.xcframework/ios-arm64_x86_64-maccatalyst -F/Users/owner/Progetti/CityCareApp97017/ios/Pods/OneSignalXCFramework/iOS_SDK/OneSignalSDK/OneSignal_XCFramework -F/Users/owner/Progetti/CityCareApp97017/ios/Pods/OneSignalXCFramework/iOS_SDK/OneSignalSDK/OneSignal_XCFramework/OneSignal.xcframework/ios-arm64_armv7_armv7s -F/Users/owner/Progetti/CityCareApp97017/ios/Pods/OneSignalXCFramework/iOS_SDK/OneSignalSDK/OneSignal_XCFramework/OneSignal.xcframework/ios-arm64_i386_x86_64-simulator -F/Users/owner/Progetti/CityCareApp97017/ios/Pods/OneSignalXCFramework/iOS_SDK/OneSignalSDK/OneSignal_XCFramework/OneSignal.xcframework/ios-arm64_x86_64-maccatalyst -filelist /Users/owner/Library/Developer/Xcode/DerivedData/Runner-ayzolztnxfdqgkajnofchsyzkfyy/Build/Intermediates.noindex/Runner.build/Debug-iphonesimulator/OneSignalNotificationServiceExtension.build/Objects-normal/x86_64/OneSignalNotificationServiceExtension.LinkFileList -Xlinker -rpath -Xlinker /usr/lib/swift -Xlinker -rpath -Xlinker @executable_path/Frameworks -Xlinker -rpath -Xlinker @loader_path/Frameworks -Xlinker -rpath -Xlinker @executable_path/../../Frameworks -Xlinker -rpath -Xlinker @executable_path/Frameworks -Xlinker -rpath -Xlinker @executable_path/../../Frameworks -dead_strip -Xlinker -object_path_lto -Xlinker /Users/owner/Library/Developer/Xcode/DerivedData/Runner-ayzolztnxfdqgkajnofchsyzkfyy/Build/Intermediates.noindex/Runner.build/Debug-iphonesimulator/OneSignalNotificationServiceExtension.build/Objects-normal/x86_64/OneSignalNotificationServiceExtension_lto.o -Xlinker -export_dynamic -Xlinker -no_deduplicate -Xlinker -objc_abi_version -Xlinker 2 -fapplication-extension -fobjc-link-runtime -L/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator -L/usr/lib/swift -Xlinker -add_ast_path -Xlinker /Users/owner/Library/Developer/Xcode/DerivedData/Runner-ayzolztnxfdqgkajnofchsyzkfyy/Build/Intermediates.noindex/Runner.build/Debug-iphonesimulator/OneSignalNotificationServiceExtension.build/Objects-normal/x86_64/OneSignalNotificationServiceExtension.swiftmodule -framework OneSignal -framework OneSignalCore -framework OneSignalExtension -framework OneSignalOutcomes -e _NSExtensionMain -Xlinker -sectcreate -Xlinker __TEXT -Xlinker __entitlements -Xlinker /Users/owner/Library/Developer/Xcode/DerivedData/Runner-ayzolztnxfdqgkajnofchsyzkfyy/Build/Intermediates.noindex/Runner.build/Debug-iphonesimulator/OneSignalNotificationServiceExtension.build/OneSignalNotificationServiceExtension.appex-Simulated.xcent -framework Pods_OneSignalNotificationServiceExtension -Xlinker -no_adhoc_codesign -Xlinker -dependency_info -Xlinker /Users/owner/Library/Developer/Xcode/DerivedData/Runner-ayzolztnxfdqgkajnofchsyzkfyy/Build/Intermediates.noindex/Runner.build/Debug-iphonesimulator/OneSignalNotificationServiceExtension.build/Objects-normal/x86_64/OneSignalNotificationServiceExtension_dependency_info.dat -o /Users/owner/Library/Developer/Xcode/DerivedData/Runner-ayzolztnxfdqgkajnofchsyzkfyy/Build/Products/Debug-iphonesimulator/OneSignalNotificationServiceExtension.appex/OneSignalNotificationServiceExtension

ld: warning: ld: warning: ignoring file /Users/owner/Progetti/CityCareApp97017/ios/Pods/OneSignalXCFramework/iOS_SDK/OneSignalSDK/OneSignal_XCFramework/OneSignal.xcframework/ios-arm64_armv7_armv7s/OneSignal.framework/OneSignal, missing required architecture x86_64 in file /Users/owner/Progetti/CityCareApp97017/ios/Pods/OneSignalXCFramework/iOS_SDK/OneSignalSDK/OneSignal_XCFramework/OneSignal.xcframework/ios-arm64_armv7_armv7s/OneSignal.framework/OneSignal (3 slices)ignoring file /Users/owner/Progetti/CityCareApp97017/ios/Pods/OneSignalXCFramework/iOS_SDK/OneSignalSDK/OneSignal_Core/OneSignalCore.xcframework/ios-arm64_armv7_armv7s/OneSignalCore.framework/OneSignalCore, missing required architecture x86_64 in file /Users/owner/Progetti/CityCareApp97017/ios/Pods/OneSignalXCFramework/iOS_SDK/OneSignalSDK/OneSignal_Core/OneSignalCore.xcframework/ios-arm64_armv7_armv7s/OneSignalCore.framework/OneSignalCore (3 slices)

ld: warning: ignoring file /Users/owner/Progetti/CityCareApp97017/ios/Pods/OneSignalXCFramework/iOS_SDK/OneSignalSDK/OneSignal_Extension/OneSignalExtension.xcframework/ios-arm64_armv7_armv7s/OneSignalExtension.framework/OneSignalExtension, missing required architecture x86_64 in file /Users/owner/Progetti/CityCareApp97017/ios/Pods/OneSignalXCFramework/iOS_SDK/OneSignalSDK/OneSignal_Extension/OneSignalExtension.xcframework/ios-arm64_armv7_armv7s/OneSignalExtension.framework/OneSignalExtension (3 slices)
ld: warning: ignoring file /Users/owner/Progetti/CityCareApp97017/ios/Pods/OneSignalXCFramework/iOS_SDK/OneSignalSDK/OneSignal_Outcomes/OneSignalOutcomes.xcframework/ios-arm64_armv7_armv7s/OneSignalOutcomes.framework/OneSignalOutcomes, missing required architecture x86_64 in file /Users/owner/Progetti/CityCareApp97017/ios/Pods/OneSignalXCFramework/iOS_SDK/OneSignalSDK/OneSignal_Outcomes/OneSignalOutcomes.xcframework/ios-arm64_armv7_armv7s/OneSignalOutcomes.framework/OneSignalOutcomes (3 slices)
Undefined symbols for architecture x86_64:
  "_OBJC_CLASS_$_OneSignal", referenced from:
      objc-class-ref in NotificationService.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
@jkasten2
Copy link
Member

jkasten2 commented Jul 1, 2022

@brux88 Can you try running pod install from your project's iOS folder and build again. You may also try opening the project in Xcode and running Product > Clean.

If the above does not fix or change the error you may try doing a full clean on your flutter project.

@brux88
Copy link
Author

brux88 commented Jul 4, 2022

hi, I tried both solutions, but it gives me the same problem I tried to create a new project, always the same problem, I attach the log
Build target OneSignalNotificationServiceExtension_2022-07-04T08-52-24.txt

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

3 participants