I am learning phonegap thru online tutorials.
I was creating facebook integration dummy app in xcode using phonegap by following step by step tutorial given at https://github.com/davejohnson/phonegap-plugin-facebook-connect
I was able to setup everything but one step where I was asked to add CordovaLib class path to XCODE was not working for me, I tried searching CordovaLib with downloaded and extracted phonegap(2.0.0) but couldn't find same.
At last, after spending good amount of time on google I could get CordovaLib from GITHUB and able to compile my project and make it work.
My question is, if CordovaLib is must for phonegap integration with Xcode, why is it not shipped with phonegap download ?
What is the best way to get CordovaLib in future for newer phonegap versions ?
There is no need anymore.
Note: Starting with Cordova 2.2, the project will have a copy of CordovaLib within it instead of having a dependency on the copy of CordovaLib from your Cordova installation.
guide_getting-started_ios
Related
I installed OCMock via Cocoapods in my project. When I try to run the test project, it fails in the build stage as it is not able to find the libOCMock.a package. With so much hours spent on it, I found that libOCMock.a sits inside a folder called OCMock in the intermediate build folder (~/Library/Developer/Xcode/ProjectName-Hash/Build/Products/Debug-iphonesimulator/OCMock/libOCMock.a).
When I move the file manually one level down (~/Library/Developer/Xcode/ProjectName-Hash/Build/Products/Debug-iphonesimulator/libOCMock.a) everything works as expected.
Now do I add reference to this build path from Xcode or how do I tell OCMock to place the file one level down?
Please help me resolve this issue.
I am getting a warning in my console when I try building the app in Release configuration. The warning reads The ServiceSDK frameworks have not been prepared for release.
Please ensure the "prepare-framework" script is run after the "Embed Frameworks" build phase.
From the documentations, I understand that a build phase script has to be run to fix the issue.
Here is how I use the framework in my solution:
I am creating a binding library which refers the framework through a Native Reference. Then I run the library project and build a .dll with I use in the iOS project within my Xamarin forms application. All this is working fine. I am able to use the intended features from the framework.
However, there is this warning which appears in the console when I run the App in Release configuration. Also, when I tried submitting the App to App Store, it throws error, which is apparently the same mentioned above.
I tried by adding Custom commands which I think is the equivalent of Xcode build phase scripts, but the warning doesn't simply go away.
Any help would be really appreciated.
Sample Repos - https://github.com/XamarinUniversity/ENT302
Youtube Video Link - https://www.youtube.com/watch?v=HEypPXVoYnY&feature=youtu.be
Gudie Here - https://xamarinuniversity.github.io/ENT302/
I'm newby with Cordova and with mac. I have a next issue: I need to fetch plugins to my project from fetch.json.
I'm doing next thing: cordova prepare and next cordova platform add ios
but it doesn't copy plugins to folder /plugins. Don't know why?
Thanks in advance.
You might want to take a look at this question and its answer: What is the purpose of fetch.json file inside cordova plugins folder?. It sounds like it isn't possible to restore plugins using that file, as it (only) checks locally? Honestly, this is the first time I'd heard of the file. :-/
For building from the command line I normally use the command:
cordova plugin add <plugin>
for each plugin you are using. Usually this isn't a huge list, and the commands only need to be invoked once. After that, it's just a cordova build to compile.
If you're using PhoneGap Build, you define the plugins in the config.xml file. There's quite a bit of information on how to use the service and the parts of the config.xml file up on the site: http://docs.build.phonegap.com/en_US/configuring_basics.md.html#The%20Basics.
I found the issue it was because of I have installed Node 5, with Node 4 it works ok.
I am using ItelliJ and XCode 4.5 to develop a PhoneGap application. I would like to share a lot of the resources used between both projects, but haven't found a good solution yet. I tried symbolic links but that doesn't end up working well. Is there a way for me to do this without having to make sure I have code in sync between devices?
I divide project on several parts:
"www" project, which contains html/js/css
android project
ios project
Android and ios projects repos have "www" project repo as submodule(I use git).
I also create separate folders ios and android in "www" project.
In index.html I analyze user agent string and include appropriate phonegap.js file.
Example.
I am using Xcode 4.3.
I have an existing Xcode Project (originally created in Xcode 3) for a embeddable Mac OS X Framework. This Project has a few Targets, but the primary Target in this project is for my Framework. This Framework is designed to be embedded in Mac Apps and has the appropriate Installation Directory properties set. (#executable_path/../Frameworks)
I have a new Xcode Project (created just now in Xcode 4) for a Mac OS X Application. There is only a single Mac App Target in this Project.
I would like to combine my old Framework Project and/or Target into the new App Project so that I can build both the App and Framework from source in a single, combined build process. (I have done this in Xcode 3 many times, but cannot figure it out in Xcode 4).
I do not (unless it's the only way) want to build my Framework separately and then just link to it from my App Project. I want to combine the Framework Target into my Mac App Project.
Here's Apple's outdated documentation describing how to do what I want in Xcode 3:
Embedding a Private Framework in Your Application Bundle > Using Separate Xcode Projects For Each Target
How do you do this in Xcode 4?
Note: I just need to know how to add my Framework Target to the new Project. From there, I know how to add the dependencies and do all the Build Phases of linking and copying the built Framework into the app bundle.
After working through a tricky issue in Xcode 4.3.1, I discovered how to do this. I've given a full/detailed example in my answer to another question about how to embed ParseKit in a Mac App.
I also found excellent information on the topic in Chapter 16 of Mastering Xcode 4 by Joshua Nozzi.
You actually have 2 separate Xcode project files here: Application and Framework. The answer is the section below the one you find: Using Separate Xcode Projects For Each Target
Edit:
OK. Now I remember. You need to create a workspace and add both projects to it. Then you can add target in one project to the other for dependency: Adding an Existing Project to a Workspace
I don't have all the details since I don't have a Mac now. But I think you can figure it out once you created the workspace.