I am new to iOS development with phonegap,
im trying to use the sharekit plugin, i followed all the steps mentioned in the Readme (sharekit 2.0), but it is still not working, I have receive following 3 errors:
/..path../Plugins/ShareKitPlugin.m:31:63: Use of undeclared identifier 'SHKURLContentTypeWebpage'
/..path../Plugins/ShareKitPlugin.m:85:63: Use of undeclared identifier 'SHKURLContentTypeWebpage'
/..path../Plugins/ShareKitPlugin.m:102:63: Use of undeclared identifier 'SHKURLContentTypeWebpage'
The problem is that i can't find any sharekit working properly for cordova 2.2.0, as I conclude that the old version of this plugins doesn't support the new cordova 2.2.0.
any suggestion to get the latest plugin? or How to fix these errors?
I had the same problem using phonegap 2.7.0 and the latest sharekit and sharekitplugin from the repo. Add this line below the import statement. It compiles and the plugin works for me. I don't know for sure if this is right though.
#import "SHKMail.h"// Add below this statement
char *SHKURLContentTypeWebpage="text/html";
The plugin has not been updated for 2 years so this is probably an incompatibility with the new Sharekit.
Did not get these errors myself. But just a quick tip. Did you follow the wiki? Don't forget the first step, as downloading the plugin directly from the Github page doesn't include the submodules.
Related
I'm using Carthage and getting this error with a dependency or two:
Skipped installing mixpanel-swift.framework binary due to the error: "Incompatible Swift version - framework was built with 3.1 and the local version is 4.0."
I understand generally what Carthage is seeing as the problem, but I haven't found a satisfactory answer on my own or looking through other issues posted that feels as clean or solid as I'm assuming it should be.
I've seen carthage bootstrap --platform iOS --no-use-binaries as a potential solution, but I can't tell if thats solving the actual problem I'm having or not, or if it is the best solution long term?
Any help on a solution or guiding me to my way there? Thanks!
To solve this you need to use the Swift 4 version of Mixpanel. It is failing because the code you are getting from Github is for Swift 3. On their Github page they say you should use the Swift 4 branch - Mixpanel Swift 4 branch. I think your Cart file needs to use: github "mixpanel/mixpanel-swift" "swift4"
it show 'unkonw execution context' when I
import Realm from 'realm';
The same problem -> the link
how to solve it in xcode and why .
Please ensure you're using the installation/setup steps for React Native that can be found here. If you're still experiencing problems after following those steps (and I recommend trying again to see if it had to do with that project), try reinstalling React Native.
Let me know if you have any issues with this and I'll happily work with you to resolve the issue and edit my answer. Cheers!
update the react-native over 0.43 if use the newest realm.
By the way, you should update your cocoapod over 1.2.0 best that version 1.1 will link project wrong.
When I run my app in xcode, it advises me there are 2 errors:
"dataFromBase64String:base64content" is deprecated
suggests added cdv to create "cdv_dataFromBase64String:base64content"
The error in the browser console is clearly:
Cannot read property 'socialsharing' of undefined.
Not sure if this is a fix I can go in and manually do somehow? Or if I need to abandon this plugin.
Direction or advise would be greatly appreciated. Or alternative plugins that work natively to use with Ionic.
I am getting the following error when calling [Braintree braintreeWithClientToken.
ViewController.m:21:27: Use of undeclared identifier 'Braintree'
I followed the Manual Integration Without CocoaPods guide to add Braintree to a new Objective-C project.
Solution - building Braintree.framework
I have managed to build a Braintree.framework that can easily be used in iOS apps, Objective-C or Swift.
Instructions are there:
https://github.com/exchangegroup/braintree-framework-builder
Here's a PR which fixes this error in your Demo: https://github.com/exchangegroup/brain-tree-manual-setup-error-four/pull/1
Here's a PR which fixes this error in your newer Demo: https://github.com/exchangegroup/braintree-manul-setup-ten/pull/1
Unfortunately, the #import statements using <angled> includes had to be replaced with "quotes" instead. While non-ideal, this was a straightforward operation by using a find-and-replace regex: <Braintree/(.*)> -> "$1"
If you're doing a new integration, Braintree recommends using CocoaPods instead. Let us know if there's a reason CocoaPods won't work for your use case.
Hope this helps :)
I am using PhoneGap 3.3.0-0.19.6 and Cordova 3.3.1-0.4.2 but HideKeyboardFormAccessoryBar=true doesn't work. I checked other related questions and the solution (at least for PhoneGap 2.7) is to edit CDViewController.m (under Classes/Cleaver), but apparently this file is missing in Phonegap 3.3
Please help!
I use KeyBoard plugin to fix this problem. (I'm currently in phonegap 3.4.0)
To download it, either
Type 'cordova plugin add https://github.com/apache/cordova-plugins.git#dev:keyboard' in your project folder
Or type 'phonegap local plugin add org.apache.cordova.keyboard', and update the newest code from KeyBoard plugin.
For Further infomation, visit phonegap CB-3020 jira. (sorry, I not allow to post more than 2 links)
Good Luck!