ios - Cannot use Parse library in WatchKit Extension (CocoaPods) -


i'm attempting use parse in watchkit extension. started new project (objective-c) , installed latest parse (1.7.5) through cocoapods. here podfile.

# uncomment line define global platform project platform :ios, '8.3'  target 'watchbumptesting'         pod 'parse', '~> 1.7.5' end  target 'watchbumptesting watchkit app'  end  target 'watchbumptesting watchkit extension'  end 

i began following tutorial on site. described how enable local data sharing, keychain sharing, , app groups. here began encounter issues...

i enabled data sharing in ios app no problem. imported <parse/parse.h> in appdelegate.h file , able complete setup following code.

// enable data sharing in main app. [parse enabledatasharingwithapplicationgroupidentifier:@”group.com.parse.parseuidemo”]; // setup parse [parse setapplicationid:@”<parseappid>” clientkey:@”<clientkey>”]; 

next, went on enable data sharing on watchkit extension. opened interfacecontroller.h , attempted import parse no luck, library not found. "okay - makes sense, suppose have add podfile"...so did! tried few updated podfiles.

v1

# uncomment line define global platform project platform :ios, '8.3'  target 'watchbumptesting'         pod 'parse', '~> 1.7.5' end  target 'watchbumptesting watchkit app'  end  target 'watchbumptesting watchkit extension'         pod 'parse', '~> 1.7.5' end 

v2

# uncomment line define global platform project platform :ios, '8.3'  def shared_pods         pod 'parse', '~> 1.7.5' end  target 'watchbumptesting'         shared_pods end  target 'watchbumptesting watchkit app'  end  target 'watchbumptesting watchkit extension'         shared_pods end 

v3

# uncomment line define global platform project platform :ios, '8.3'  link_with 'watchbumptesting', 'watchbumptesting watchkit extension'  target 'watchbumptesting'         pod 'parse', '~> 1.7.5' end  target 'watchbumptesting watchkit app'  end  target 'watchbumptesting watchkit extension'  end 

all 3 produced different results, none of desired. v3 not install pod. stated [!] targets different platforms.

v1 , v2 resulted in warning , error. warning...

pods-watchbumptesting watchkit extension rejected implicit dependency 'libpods-watchbumptesting watchkit extension.a' because doesn't contain platform 'watchsimulator' in supported_platforms 'iphonesimulator, iphoneos' 

the error changed depending on if imported library in extension or not. thing has come of watchkit extension interfacecontroller.h file see <parse/parse.h> however, when imported it complained pfpurchase.h not find storekit library.

enter image description here

i attempted import library in watchkit extension targets "linked frameworks , libraries" not found - i'm assuming because ios 9 , not watchkit. importing in ios app's target did not fix problem.

the second error received when left podfile (v1 and/or v2) didn't import <parse/parse.h> or <parse.h> in interfacecontroller.h time recieved...

ld: library not found -lpods-watchbumptesting watchkit extension-bolts clang: error: linker command failed exit code 1 (use -v see invocation) 

i @ complete , utter loss. i've exhausted options! thoughts appreciated. i'm using latest xcode 7 beta cocoapods 0.37.2

looks have specify watchos platform cocoapod configurations targeting watchos apps. take @ more info: https://github.com/neonichu/native-watchos-example?


Comments

Popular posts from this blog

OpenCV OpenCL: Convert Mat to Bitmap in JNI Layer for Android -

android - org.xmlpull.v1.XmlPullParserException: expected: START_TAG {http://schemas.xmlsoap.org/soap/envelope/}Envelope -

python - How to remove the Xframe Options header in django? -