title: Cannot use Parse library in WatchKit Extension (CocoaPods)
body: <p>I'm attempting to use parse in a WatchKit extension.  I started with a new project (objective-c) and installed the latest Parse (1.7.5) through CocoaPods.  Here is my Podfile.</p>
  
  <pre><code># Uncomment this line to define a global platform for your project
  platform :ios, '8.3'
  
  target 'WatchBumpTesting' do
          pod 'Parse', '~&gt; 1.7.5'
  end
  
  target 'WatchBumpTesting WatchKit App' do
  
  end
  
  target 'WatchBumpTesting WatchKit Extension' do
  
  end
  </code></pre>
  
  <p>I began by following the <a href="http://blog.parse.com/announcements/introducing-local-data-sharing-for-apple-watch-and-app-extensions/" rel="nofollow noreferrer">tutorial</a> on their site.  It described how to enable local data sharing, keychain sharing, and app groups.  Here is where I began to encounter issues...</p>
  
  <p>I enabled data sharing in my iOS app no problem.  I imported <code>&lt;Parse/Parse.h&gt;</code> in my AppDelegate.h file and was able to complete the setup with the following code.</p>
  
  <pre><code>// Enable data sharing in main app.
  [Parse enableDataSharingWithApplicationGroupIdentifier:@”group.com.parse.parseuidemo”];
  // Setup Parse
  [Parse setApplicationId:@”&lt;ParseAppId&gt;” clientKey:@”&lt;ClientKey&gt;”];
  </code></pre>
  
  <p>Next, I went on to enable data sharing on the WatchKit Extension.  I opened my InterfaceController.h and attempted to import Parse but no luck, the library could not be found.  "Okay - this makes sense, I suppose I have to add it to my Podfile"...so I did! I tried a few updated Podfiles.</p>
  
  <p>V1</p>
  
  <pre><code># Uncomment this line to define a global platform for your project
  platform :ios, '8.3'
  
  target 'WatchBumpTesting' do
          pod 'Parse', '~&gt; 1.7.5'
  end
  
  target 'WatchBumpTesting WatchKit App' do
  
  end
  
  target 'WatchBumpTesting WatchKit Extension' do
          pod 'Parse', '~&gt; 1.7.5'
  end
  </code></pre>
  
  <p>V2</p>
  
  <pre><code># Uncomment this line to define a global platform for your project
  platform :ios, '8.3'
  
  def shared_pods
          pod 'Parse', '~&gt; 1.7.5'
  end
  
  target 'WatchBumpTesting' do
          shared_pods
  end
  
  target 'WatchBumpTesting WatchKit App' do
  
  end
  
  target 'WatchBumpTesting WatchKit Extension' do
          shared_pods
  end
  </code></pre>
  
  <p>V3</p>
  
  <pre><code># Uncomment this line to define a global platform for your project
  platform :ios, '8.3'
  
  link_with 'WatchBumpTesting', 'WatchBumpTesting WatchKit Extension'
  
  target 'WatchBumpTesting' do
          pod 'Parse', '~&gt; 1.7.5'
  end
  
  target 'WatchBumpTesting WatchKit App' do
  
  end
  
  target 'WatchBumpTesting WatchKit Extension' do
  
  end
  </code></pre>
  
  <p>All three produced different results, none of which were desired.  V3 would not install the pod.  It stated <code>[!] Targets with different platforms</code>.  </p>
  
  <p>V1 and V2 resulted in a warning and an error.  The warning...</p>
  
  <pre><code>Pods-WatchBumpTesting WatchKit Extension was rejected as an implicit dependency for 'libPods-WatchBumpTesting WatchKit Extension.a' because it doesn't contain platform 'watchsimulator' in its SUPPORTED_PLATFORMS 'iphonesimulator, iphoneos'
  </code></pre>
  
  <p>The error changed depending on if I imported the library in the extension or not.  The good thing which has come from all of this was that my WatchKit Extension InterfaceController.h file could now see <code>&lt;Parse/Parse.h&gt;</code>  However, when I imported it it complained that PFPurchase.h could not find the StoreKit library.</p>
  
  <p><img src="https://i.stack.imgur.com/YGWmC.png" alt="enter image description here"></p>
  
  <p>I attempted to import the library in the WatchKit Extension targets "Linked Frameworks and Libraries" but it could not be found - I'm assuming this is because it is iOS 9 and not WatchKit.  Importing it in the iOS App's target did not fix the problem.</p>
  
  <p>The second error I received was when I left the Podfile as is (V1 and/or V2) but didn't import <code>&lt;Parse/Parse.h&gt;</code> or <code>&lt;Parse.h&gt;</code> in my InterfaceController.h  This time I recieved...</p>
  
  <pre><code>ld: library not found for -lPods-WatchBumpTesting WatchKit Extension-Bolts
  clang: error: linker command failed with exit code 1 (use -v to see invocation)
  </code></pre>
  
  <p>I am at a complete and utter loss.  I've exhausted all options!  Any thoughts would be greatly appreciated.  I'm using the latest Xcode 7 Beta as well as CocoaPods 0.37.2</p>