I'm working on iOS Static Library Project (9.0). I've decided to include PubNub to my Static Library Project. Steps I followed;
- I've downloaded PubNub sample project and builded.
- I've copied Framework files (CocoaLumberjack and PubNub) into my Supporting Files folder.
- I've closed xCode, and created PodFile in project directory.
Content of PodFile is as follows:
platform :ios, "9.0"
source 'https://github.com/CocoaPods/Specs.git'
use_frameworks!
pod "PubNub", "~> 4.0"
After installation i get warning for both Debug and Release says;
[!] The xxxIOSFramework [Debug] target overrides the OTHER_LDFLAGS build setting defined in `Pods/Target Support Files/Pods/Pods.debug.xcconfig'. This can lead to problems with the CocoaPods installation
- I've opened
.xcworkspaceand saw both my project and Pods project in tree. - At this point build gives error
ld: framework not found Pods
After my re-searches, most says that remove Pods.framework which is highlighted in red, and i did.
- After removing
Pods.framework, build continues to give error such as;ld: -rpath can only be used when creating a dynamic final linked image - I've moved to
Target > Build Settings > Other Linker Flags.ObjCwas added, and I also added$(inherited)but error still exists.
Anyone have any idea about getting -rpath can only be used when creating a dynamic final linked image error while adding Cocoapods to iOS Static Library Project? I can provide additional information if you need.
Thank you.
