Search code examples
iosobjective-cxcode7dylib

Xcode 7 and Deployment Target 8.0


when i add pubnub framework in Target -> General -> embedded Binaries. it's works fine for me as given in below image.

enter image description here

But embedding the CocoaLumberjack and PubNub binaries (rather than just linking them) causes the build to be rejected by TestFlight throwing a ERROR ITMS-90087. This happens because the binary supports simulator architectures (x86) and is never meant to be embedded/submitted to the app store.

so i removed framework from Target -> General -> embedded Binaries, Then i get the error

enter image description here

dyld: Library not loaded: @rpath/PubNub.framework/PubNub Referenced from: /Users/mymac/Library/Developer/CoreSimulator/Devices/43C64A2B-0661-4986-A903-081EBAD8E761/data/Containers/Bundle/Application/089839A8-D4A4-4343-A277-4E4D028648AB/ParcelPalDriver.app/ParcelPalDriver Reason: image not found

What should i do? Thanks in advance


Solution

  • Best way used to pod so get dependancy automatic.