Snapchat / snap-kit-spm

https://kit.snapchat.com/
MIT License
9 stars 10 forks source link

Tests crash when including the Snapchat SDK #18

Open IanHoar opened 4 months ago

IanHoar commented 4 months ago

Hey there,

I'm working on a small feature to implement sharing to snapchat. When I include the SDK (2.5.0) I don't have warnings in the codebase and I can successfully use the SDK to post to Snapchat, however, when I run my tests locally and on CI they crash.

Here's an example of the failure:

Failed to load the test bundle. (Underlying Error: The bundle “FeatureAppTests” couldn’t be loaded. The bundle couldn’t be loaded. Try reinstalling the bundle. dlopen(/Users/ianhoar/Library/Developer/Xcode/DerivedData/foo-bifxvzpatbimcmbncssovfckjavg/Build/Products/Debug-Production-iphonesimulator/FeatureAppTests.xctest/FeatureAppTests, 0x0109): Library not loaded: @rpath/SCSDKCoreKit.framework/SCSDKCoreKit
  Referenced from: <F383647A-CB64-38EE-BB39-CEC11ECB9BA8> /Users/ianhoar/Library/Developer/Xcode/DerivedData/foo-bifxvzpatbimcmbncssovfckjavg/Build/Products/Debug-Production-iphonesimulator/FeatureAppTests.xctest/FeatureAppTests
  Reason: tried: '/Users/ianhoar/Library/Developer/Xcode/DerivedData/foo-bifxvzpatbimcmbncssovfckjavg/Build/Products/Debug-Production-iphonesimulator/SCSDKCoreKit.framework/SCSDKCoreKit' (code signature in <A6E227AD-AA6E-3071-B749-283177FE83B0> '/Users/ianhoar/Library/Developer/Xcode/DerivedData/foo-bifxvzpatbimcmbncssovfckjavg/Build/Products/Debug-Production-iphonesimulator/SCSDKCoreKit.framework/SCSDKCoreKit' not valid for use in process: Trying to load an unsigned library), '/Users/ianhoar/Library/Developer/Xcode/DerivedData/foo-bifxvzpatbimcmbncssovfckjavg/Build/Products/Debug-Production-iphonesimulator/PackageFrameworks/SCSDKCoreKit.framework/SCSDKCoreKit' (no such file), '/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Library/Frameworks/SCSDKCoreKit.framework/SCSDKCoreKit' (no such file), '/Users/ianhoar/Library/Developer/Xcode/DerivedData/foo-bifxvzpatbimcmbncssovfckjavg/Build/Products/Debug-Production-iphonesimulator/SCSDKCoreKit.framework/SCSDKCoreKit' (code signature in <A6E227AD-AA6E-3071-B749-283177FE83B0> '/Users/ianhoar/Library/Developer/Xcode/DerivedData/foo-bifxvzpatbimcmbncssovfckjavg/Build/Products/Debug-Production-iphonesimulator/SCSDKCoreKit.framework/SCSDKCoreKit' not valid for use in process: Trying to load an unsigned library), '/Users/ianhoar/Library/Developer/Xcode/DerivedData/foo-bifxvzpatbimcmbncssovfckjavg/Build/Products/Debug-Production-iphonesimulator/PackageFrameworks/SCSDKCoreKit.framework/SCSDKCoreKit' (no such file), '/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Library/Frameworks/SCSDKCoreKit.framework/SCSDKCoreKit' (no such file), '/Users/ianhoar/Library/Developer/Xcode/DerivedData/foo-bifxvzpatbimcmbncssovfckjavg/Build/Products/Debug-Production-iphonesimulator/FeatureAppTests.xctest/Frameworks/SCSDKCoreKit.framework/SCSDKCoreKit' (no such file), '/Users/ianhoar/Library/Developer/Xcode/DerivedData/foo-bifxvzpatbimcmbncssovfckjavg/Build/Products/Debug-Production-iphonesimulator/FeatureAppTests.xctest/../Frameworks/SCSDKCoreKit.framework/SCSDKCoreKit' (no such file), '/Users/ianhoar/Library/Developer/Xcode/DerivedData/foo-bifxvzpatbimcmbncssovfckjavg/Build/Products/Debug-Production-iphonesimulator/FeatureAppTests.xctest/Frameworks/SCSDKCoreKit.framework/SCSDKCoreKit' (no such file), '/Users/ianhoar/Library/Developer/Xcode/DerivedData/foo-bifxvzpatbimcmbncssovfckjavg/Build/Products/Debug-Production-iphonesimulator/FeatureAppTests.xctest/../Frameworks/SCSDKCoreKit.framework/SCSDKCoreKit' (no such file), '/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Library/Frameworks/SCSDKCoreKit.framework/SCSDKCoreKit' (no such file), '/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Library/PrivateFrameworks/SCSDKCoreKit.framework/SCSDKCoreKit' (no such file), '/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/lib/SCSDKCoreKit.framework/SCSDKCoreKit' (no such file), '/Library/Developer/CoreSimulator/Volumes/iOS_21F79/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 17.5.simruntime/Contents/Resources/RuntimeRoot/System/Library/Frameworks/SCSDKCoreKit.framework/SCSDKCoreKit' (no such file))