-
Notifications
You must be signed in to change notification settings - Fork 99
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
Type 'XCTContext' has no member 'runActivity' #258
Comments
Hi @verodanilova, sorry to hear you're having trouble. I need some more information to help us track this down. Can you confirm your integration with the library? CocoaPods, right? Anything weird in your |
Hey @ashfurrow ! Thanks for your answer.
|
Hey @ashfurrow ! Do you have any news so far? |
Hi. Sorry I don’t have the capacity to work on this right now. I’d welcome a pull request but I can’t troubleshoot right now. |
Hey! No problem! Then I will wait for your answer as soon as you have time 🙏 |
Hi @verodanilova! Do you mind to publish a minimum working example showing the failure? That way, other people could take a look if they have time. |
Hey @hfehrmann ! |
@verodanilova I was thinking in sharing an example project, without any private code. |
I am not sure what the core reason is, but this PR helped me to solve the issue https://github.com/pointfreeco/swift-snapshot-testing/pull/455/files For some reason post_install do |installer|
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
if target.name == 'Nimble-Snapshots'
config.build_settings['ENABLE_TESTING_SEARCH_PATHS'] = 'YES'
end
end
end
end To fix the core issue we need to update the s.pod_target_xcconfig = { 'ENABLE_BITCODE' => 'NO' } to s.pod_target_xcconfig = {
'ENABLE_BITCODE' => 'NO',
'ENABLE_TESTING_SEARCH_PATHS' => 'YES',
} Here is an example of how it was done in the Nimble https://github.com/Quick/Nimble/blob/main/Nimble.podspec And here is a pull request #276 |
…-no-member-runActivity - Fixes #258
Hey!
After the update to v. 9.5.0, our snapshot tests target doesn't work because of a compiler error:
Could you please check what's wrong? 🙏
The text was updated successfully, but these errors were encountered: