zalando / SwiftMonkey

A framework for doing randomised UI testing of iOS apps
MIT License
1.95k stars 174 forks source link

test failed #64

Closed ghost closed 6 years ago

ghost commented 6 years ago

2018-09-20 16:47:44.135358+0800 SwiftMonkeyExampleUITests-Runner[4876:449144] +[CATransaction synchronize] called within transaction 2018-09-20 16:47:44.349712+0800 SwiftMonkeyExampleUITests-Runner[4876:449144] Running tests... 2018-09-20 16:47:45.321244+0800 SwiftMonkeyExampleUITests-Runner[4876:449144] The bundle “SwiftMonkeyExampleUITests” couldn’t be loaded because it is damaged or missing necessary resources. Try reinstalling the bundle. 2018-09-20 16:47:45.321450+0800 SwiftMonkeyExampleUITests-Runner[4876:449144] (dlopen_preflight(/Users/ios/Library/Developer/Xcode/DerivedData/SwiftMonkeyExample-guvnsrsjlufdsbdsgqhebbunpfij/Build/Products/Debug-iphonesimulator/SwiftMonkeyExampleUITests-Runner.app/PlugIns/SwiftMonkeyExampleUITests.xctest/SwiftMonkeyExampleUITests): Library not loaded: @rpath/libswiftSwiftOnoneSupport.dylib Referenced from: /Users/ios/Library/Developer/Xcode/DerivedData/SwiftMonkeyExample-guvnsrsjlufdsbdsgqhebbunpfij/Build/Products/Debug-iphonesimulator/SwiftMonkey.framework/SwiftMonkey Reason: no suitable image found. Did find: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/libswiftSwiftOnoneSupport.dylib: mach-o, but not built for iOS simulator)

wojciechczerski commented 6 years ago

Hey @YMHCoder, I am facing exactly the same issue. Whenever I find a solution, I'll let you know.

wojciechczerski commented 6 years ago

Hey @YMHCoder, if you are using Xcode 10 the "new build system" seems to have something to do with this issue. Try this:

  1. In Xcode go to File -> Workspace Settings ...
  2. Change the Build System to Legacy Build System

After this change the sample should compile and run correctly.

I still don't know whether this is the root cause of the issue and I need some more time to investigate. It might end up in setting the legacy system for the sample app.

wojciechczerski commented 6 years ago

@YMHCoder I have updated the example project and hopefully the issue you were facing is fixed. Could you please confirm whether this works or not for you?

ghost commented 6 years ago

@YMHCoder I have updated the example project and hopefully the issue you were facing is fixed. Could you please confirm whether this works or not for you?

It has been solved.Thank you very much.

1232209 commented 5 years ago

thanks!