antoniocasero / Panels

Panels is a framework to easily add sliding panels to your application
MIT License
1.5k stars 89 forks source link

crash when running on real device #22

Closed AmineNac closed 4 years ago

AmineNac commented 4 years ago

Hi, I installed the panels pod and setup all the necessary code, then i launched the app on the simulator and everything works like a charm, but when i try to run on a real device the app crashs with the next error:

dyld: Library not loaded: @rpath/Panels.framework/Panels Referenced from: /private/var/containers/Bundle/Application/4CA47637-BDFB-4473-9305-729F57C14B4A/Metro Sahel.app/Metro Sahel Reason: no suitable image found. Did find: /private/var/containers/Bundle/Application/4CA47637-BDFB-4473-9305-729F57C14B4A/Metro Sahel.app/Frameworks/Panels.framework/Panels: code signature invalid for '/private/var/containers/Bundle/Application/4CA47637-BDFB-4473-9305-729F57C14B4A/Metro Sahel.app/Frameworks/Panels.framework/Panels'

Capture d’écran 2020-03-05 à 11 24 28 PM

Xcode version : 11.3.1 Device used: iPhone 7 Plus / iOS 13.3.1

AmineNac commented 4 years ago

Hello again, I even tried to download your example project but same problem occurs. On simulator it works but NOT on a real device.

AmineNac commented 4 years ago

Hi again, Issue solved !

The problem was "use_frameworks!" in the Podfile:

use_frameworks!
target 'test' do
  pod "Panels"
end

I just removed "use_frameworks!" then "pod install" command and it worked.