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

Unable to use XCFit without copy swift lib #20

Open
APshenkin opened this issue Dec 10, 2018 · 2 comments
Open

Unable to use XCFit without copy swift lib #20

APshenkin opened this issue Dec 10, 2018 · 2 comments

Comments

@APshenkin
Copy link

Hi!

So after installation using cocoapods I was unable to launch tests.

Here is my Podfile

target 'MyAppBDDTests' do
    use_frameworks!
    
    pod 'XCFit'
end

Tests fails with this error:

2018-12-10 17:59:18.534828+0300 MyAppBDDTests-Runner[81743:15183477] Running tests...
2018-12-10 17:59:18.627137+0300 MyAppBDDTests-Runner[81743:15183477] The bundle “MyAppBDDTests” couldn’t be loaded because it is damaged or missing necessary resources. Try reinstalling the bundle.
2018-12-10 17:59:18.627333+0300 MyAppBDDTests-Runner[81743:15183477] (dlopen_preflight(/Users/a.pshenkin/Library/Developer/Xcode/DerivedData/MyApp-cqxbjzcsntzyqcdyggzdpcacqdjn/Build/Products/Debug-iphonesimulator/MyAppBDDTests-Runner.app/PlugIns/MyAppBDDTests.xctest/MyAppBDDTests): Library not loaded: @rpath/libswiftSwiftOnoneSupport.dylib
  Referenced from: /Users/a.pshenkin/Library/Developer/Xcode/DerivedData/MyApp-cqxbjzcsntzyqcdyggzdpcacqdjn/Build/Products/Debug-iphonesimulator/MyAppBDDTests-Runner.app/PlugIns/MyAppBDDTests.xctest/Frameworks/XCFit.framework/XCFit
  Reason: image not found)

TO fix this I found only one way. Add Copy Files in Build Phases, choose destination Frameworks, add file: /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/libswiftSwiftOnoneSupport.dylib

Is there more elegant way to fix this?

Thanks in advance

@Shashikant86
Copy link
Collaborator

Didn't that error before, can you try with new version of XCFit?

@Shashikant86
Copy link
Collaborator

Meanwhile I will try to recreate it. Thanks a lot @APshenkin for reporting it, Aplogies for the terribly delayed responding on this.

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

2 participants