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]: How do I get XCTests to run properly (Flutter App)? #927

Closed
1 task done
jnovak-SM2Dev opened this issue Jul 31, 2024 · 3 comments
Closed
1 task done
Labels

Comments

@jnovak-SM2Dev
Copy link

jnovak-SM2Dev commented Jul 31, 2024

How can we help?

How do I get XCTests in RunnerTests to work in a Flutter app? I assume I need to add something to the test build target, but the docs don't mention anything.

Test command (from Firebase Test Lab docs)

xcodebuild build-for-testing -workspace Runner.xcworkspace -scheme Runner -xcconfig Flutter/Release.xcconfig -configuration Release -derivedDataPath ../build/ios_integ -sdk iphoneos

The error I receive

The following build commands failed:
        Ld /Users/username/Projects/my_app/build/ios_integ/Build/Products/Release-iphoneos/OneSignalNotificationServiceExtension.appex/OneSignalNotificationServiceExtension normal (in target 'OneSignalNotificationServiceExtension' from project 'Runner')

Firebase Test Lab docs:

https://github.com/flutter/flutter/tree/main/packages/integration_test#ios-device-testing

Code of Conduct

  • I agree to follow this project's Code of Conduct
@jnovak-SM2Dev jnovak-SM2Dev changed the title How do I get XCTests to run properly (Flutter App)? [question]: How do I get XCTests to run properly (Flutter App)? Jul 31, 2024
@nan-li
Copy link
Contributor

nan-li commented Aug 8, 2024

Hi @jnovak-SM2Dev thank you for reaching out. Can you share more about what exactly was the build command that failed?
What is the error for the OneSignalNotificationServiceExtension?

@nan-li nan-li added the iOS label Aug 8, 2024
@jnovak-SM2Dev
Copy link
Author

@nan-li That's all the log has about it. If I do verbose it gives me 500 lines, but nothing more about the error. Do I need to add anything to the RunnerTests target? That's the only thing I can think of.

Main Target:
Screenshot 2024-08-08 at 3 59 16 PM

Test Target:
Screenshot 2024-08-08 at 3 59 21 PM

@nan-li
Copy link
Contributor

nan-li commented Aug 23, 2024

The ld command is a link editor, also known as a linker. It combines object and archive files to create an executable. Without a failure or error message, I don't know how to help you resolve.

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

No branches or pull requests

3 participants