Reputation: 161
when i add pubnub framework in Target -> General -> embedded Binaries. it's works fine for me as given in below image.
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
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
Upvotes: 2
Views: 219
Reputation: 2144
You should strip simulator architecture from PubNub framework. Here are good article for this topic: http://ikennd.ac/blog/2015/02/stripping-unwanted-architectures-from-dynamic-libraries-in-xcode/
Upvotes: 1
Reputation: 319
I think your created framework is not release build of framework.So follow below link to create release build to framework. https://medium.com/@syshen/create-an-ios-universal-framework-148eb130a46c#.y3ryid367
Thanks
Upvotes: 0