PhoneGap and SBJSON duplicate conflict while using Facebook iOS SDK - json

I'm trying to use the Facebook iOS SDK, but it requires SBJSON, which is already included by PhoneGap, thus raising ld: duplicate symbol _OBJC_METACLASS_$_SBJSON.
PhoneGap 0.9.3
iOS SDK 4.2
Does anyone have any idea how to solve it?

I too faced the same problem, i just deleted the 'JSON' folder inside the 'FBConnect' folder. Then it worked fine .

Related

Setting up phonegap development environment

I am working on the windows-8 PC. And i have some HTML app gui which i want to convert to android mobile app.
I am new to phonegap.
How to setup the development environment for phonegap?
1> Following tool android developers app tells to use phonegap cli to create new project :--
http://phonegap.com/blog/2014/04/23/phonegap-developer-app/
This video uses Android sdk to create new project :--
http://www.youtube.com/watch?v=MF6dzbTDwdY
Which is the best methord to start working with phonegap ?
Do we need android SDK if we work with phonegap cli ?
2> This link tells to use commandline or IDE methord to create phonegap projects :--
https://github.com/phonegap/phonegap/wiki
3> What exactly is the relation between android SDK & phonegap cli .. ?
i would recommend you to use Cordova. Why? Yes, there is no realy reason why to do this, It's rather a question of what you like to work with.
I'm using Cordova. Maybe you read the Getting started guide and then the following documentation.
After you installed all, you can open up the CMD and create a new cordova project. If you want to know, how to do this, go on with the posted link above. A little bit under the setup instructions you can find a Guide which explains you, how to setup a new project and so on.
If you work with Cordova, you need Eclipse and i would recommend you to install Genymotion for having more options of deploying an app to a device.
Later on, if you would like to convert an Application to another platform you can use the Phonegap Build from Adobe. But normaly you can use your code like you wrote it for android 1:1 for iOS. Maybe there are some tiny differences, but they would'nt be fixed by the phonegap build i think. So... i would say there is no way to say "You should work with Phonegap" or "You should work with Cordova" it's your choice.
If you want to build app for android locally you'll need android SDK. This is because phonegap/cordova uses the android SDK to wrap the app.
Basically phonegap/cordova uses the SDK to compile the project for android platform and to build the APK file which can be installed in devices. You can interpret as Phonegap/cordova cli is an interface between android technology and cross platform technology. Similarly iOS will need some native technology to work with phonegap. Thiese SDK helps to build and package the app for their own platform which you've written in HTML/CSS/Javascript.

Error when set project in release mode - Windows Phone 8.1

Am porting my Windows Phone 8 app to Windows Phone 8.1 and everything is working fine in debug mode. But when I set in release mode and while building the application, I get the error,
The type of namespace "FlickGestureEventArgs" could not be found
The type of namespace "ShakeGestureEventArgs" could not be found
How to overcome this? I couldn't launch the app certification kit when in debug mode.
Got solution for my own question and here is my answer.
First I re-installed the WP toolkit from nuget using the command
Install-Package WPtoolkit
So that I can able to solve FlickGestureEventArgs. And similarly I thought this will be solution to my another problem ShakeGestureEventArgs. Started searching for the new ShakeGesture.dll and find that in below link.
ShakeGesture.dll
Now my problem is solved. If you are facing the same issues, just re install the packages which shows error and you can able to solve it.

Symbol(s) not found for architecture armv7 - Flash Builder for Windows / iOS Native Extension

I'm attempting to run the example project for this Adobe Native Extension 'SongPickerANE' from Flash Builder on Windows onto an iOS device. I've run it successfully on the same device (and iOS Simulator) from Flash Builder on my Mac with AIR SDK 3.4, but it failed to run with 3.4 on Windows, as it couldn't get access to the required iOS SDK (6.1).
So, I've updated my AIR SDK on my windows machine, first to 3.5, and now to the current version 3.9, which seemed to sort out the iOS SDK issues I was having, but both failed to run with the following error:
java.lang.Exception:
Undefined symbols for architecture armv7:
"_objc_setProperty_nonatomic", referenced from:
-[SongPickerHelper setPickedItem:] in libcom.newpixel.air.nativeextensions.SongPicker.a(SongPickerHelper.o)
ld: symbol(s) not found for architecture armv7
Compilation failed while executing : ld64
From what I remember of it in the dim, distant past of my iOS development, this is some sort of XCode linking / Build Settings / Phases error? So to fix it, will I have to edit and recompile the ANE, or is there anything I can set in the Flash Builder project which uses the ANE to fix it?
If it requires recompiling the ANE, any tips / advice on where to start would be appreciated, as I've so far managed to avoid having anything to do with them, and I do find them slightly terrifying.
Many thanks in advance.

How to change config settings on local ios phonegap build from the new Phonegap CLI?

FYI; Phonegap CLI: http://log.michaelbrooks.ca/post/phonegap-cli-preview
So, after making a build with the new Phonegap CLI, getting a project with the new Phonegap 3.0, I wanted to run my application on an ios simulator:
> phonegap local run ios
This successfully install the phonegap application onto the IOS 6.1 simulator and runs it- all good so far. Problem is that all REST-functionality is not working. I dig around and find out that the phonegap local run ios automatically creates a ios xcode project at /platforms/ios/. Inside this folder I can locate a config.xml-file with access origin set to only allow http://127.0.0.1*. Now, I want to change this, so I do. Problem is that when I run phonegap local run ios again the old config file is back.
So basically, the questions end out in:
How do I change the Phonegap configuration settings when using Phonegap CLI?
Ah, I feel very embarrassed now, but I think its better to share then to delete :)
If you have a config.xml file in your www-folder (which shipped originally, but I have removed) you can change the values from there. This file will be copied over.
So in my config.xml-file inside my apps www-folder I found:
<access origin="http://127.0.0.1*"/>
Just before the last tag, . I changed this to:
<access origin="*"/>
And then everything worked :)

PGPlugin.h was not found when I was using Childbrowser in Phonegap

I tried to use Childbrowser in phonegap 1.7.0 in my project.But it won't run as my expectation.
Error: ' PGPlugin.h' file is not found.
How to obtain the file 'PGPlugin.h'?
Does anyone meet this problem?
Does phonegap plugin not support the latest phonegap?
You want to use this version of the ChildBrowser instead as it is updated for use with Cordova.
https://github.com/phonegap/phonegap-plugins/tree/master/iOS/ChildBrowser