shinydevelopment / SimulatorStatusMagic

Clean up your status bar for taking screenshots on the iOS simulator.
MIT License
2.35k stars 139 forks source link

Adding it to automated XUITests? #67

Closed rcfrias closed 6 years ago

rcfrias commented 6 years ago

I successfully managed it to have it working in the "Debug" configuration. For some reason, I am getting a runtime error while trying to run the xuitests:

The bundle “MyProjectUITests” couldn’t be loaded because it is damaged or missing necessary resources. Try reinstalling the bundle.
2018-09-05 14:17:58.370499-0500 MyProjectUITests-Runner[34862:14069845] (dlopen_preflight(/Users/myuser/Library/Developer/Xcode/DerivedData/MyProject-dpjmnnjvebtcamdrvfszxtyevwbc/Build/Products/Debug-iphonesimulator/MyProjectUITests-Runner.app/PlugIns/MyProjectUITests.xctest/MyProjectUITests): Library not loaded: @rpath/SimulatorStatusMagiciOS.framework/SimulatorStatusMagiciOS
  Referenced from: /Users/myuser/Library/Developer/Xcode/DerivedData/MyProject-dpjmnnjvebtcamdrvfszxtyevwbc/Build/Products/Debug-iphonesimulator/MyProjectUITests-Runner.app/PlugIns/MyProjectUITests.xctest/MyProjectUITests
  Reason: image not found)
rcfrias commented 6 years ago

NVM, I after playing with the settings, I found the solution to this, just adding:

$(SRCROOT)/ThirdPartyFrameworks/

to the TEST Target Runpath Search Paths

I'm so happy it works! :D