YouTube integration issue in iOS SDK - ios

I am integrating YouTube in my app in which I have to login the user for authentication.I got a sample code that is working fine.When I started integrating that code in my app then I am getting some issues.
First:-
When I run the same code in a sample app I made then its telling GTLYouTube.h file missing.I am unable to know how that sample is working even though it does not have that file.
Second:-
Subsequently I added the downloaded file from svn checkout svn checkout http://google-api-objectivec-client.googlecode.com/svn/trunk/ google-api-objectivec-client-read-only and added the files in my app.
Then although the GTLYouTubeConstants.m is present as I can see in Services->Youtube->Generated I am getting error that GTLYouTubeConstants.m file not found.
I am unable to find while compiler is unable to find the file.Is there anything wrong in my implementation?

Finally I came up with the solution.I need to make a lot of changes in the code which I will write in steps so that it can be helpful for others.
The main problem I got in GTLYouTube_Sources.m,GTLCommon_Sources.m and GTLNetworking_Sources.m.When I used these files from the Sample App the files were missing and I was getting message like GTLYouTubeConstants.m file not found in GTLYouTube_Sources.m file.From the comments of developer in the GTLYouTube_Sources.m I came to know that I can't directly use these files.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
So I downloaded the files from svn checkout http://google-api-objectivec-client.googlecode.com/svn/trunk/google-api-objectivec-client-read-only and added the files in my app.Then again I got that error but when I removed the GTLYouTube_Sources.m,GTLCommon_Sources.m and GTLNetworking_Sources.m files form the project then the error gone(since I have already added the needed files).
Then again I got the duplicate symbol _OBJC_METACLASS_$ (linker error).Then I had to remove the GTLYouTube_Sources.m from Services->YouTube->Generated folder and the error gone.
I had made some other changes along with this:
I changed my header search path to same that used in Sample App.Also I changed my framework search path to $(SDKROOT)/Developer/Library/Frameworks $(inherited) $(DEVELOPER_FRAMEWORKS_DIR) and I removed all the test files and didn't use any test framework as we can see in the downloaded files.
May be my solution is not proper but it let the code running so please suggest me any improvement needed.

Related

Windows SDK 10 can not find .pcp file

Hi I have a problem I can not find template.pcp file that should be in windows SDK but It is not. I need it to make a patch .msp file I am following this tutorial: MSDN tutorial . Does anyone know where could I find it?
I can't see the template.pcp file anywhere in the SDK at this point, it might have gotten removed whereas it previously kept being moved.
The free MSI SDK tool called Orca can save a PCP file - and other types of MSI-relevant files. Search Windows SDK folder for Orca-x86_en-us.msi and install. Some more info here, current paths etc... (towards bottom).
WiX can also create a PCP file via markup, as explained in this thorough tutorial: Using Patch Creation Properties. This tutorial should contain all required information to succeed without the template.pcp file (though I never use patching).

What is the difference in .embeddedframework.zip and .framework?

I am attempting to extend some functionality to a plugin designed for use in Unreal Engine 4. Using the documentation available and reviewing the solution I've encountered something I do not understand and cannot figure out a way to research it.
In this plugin, the original developer has 2 different files *.embeddedframework.zip, in each of these files there are some binary files, module maps, and *.h files. These *.h files are able to include iOS modules.
I have been able to create .framework builds using Xcode, unfortunately, the do not seem to contain the same format as the *.embeddedframework.zip file.
I apologize for the vague question; I'm new to iOS and I'm quite stumped, any leads whatsoever would be appreciated! (code available on request but it's really quite boilerplate)
YourFramework.embeddedframework.zip is just a zip archive of the Xcode products that takes the following form:
YourFramework.embeddedframework.zip
> YourFramework.embeddedframework/
> YourFramework.framework/
After you link it and build, you can verify that the unzipping worked by checking here:
/Users/Shared/Epic Games/UE_4.17/Engine/Intermediate/UnzippedFrameworks/

Invalid Binary in ItunesConnect on Xamarin Project

My Issue
Supported by the Xamarin guidance here http://developer.xamarin.com/guides/ios/deployment,_testing,_and_metrics/app_distribution_overview/publishing_to_the_app_store/ I used the App Loader tool (recently downloaded version 3) and uploaded my .ipa file. Everything indicates success but after a few minutes, it moves from “uploaded” to “invalid binary”
I have checked stackoverflow and done a few suggestions ive double-checked all my image files and the build for 64 bit etc. Any help you can provide is appreciated.
Well since I dont have a 10 reputation I cannot post pics and i can only do one link, so I am going to upload this to my blog, I appreciate any help i can get please.
See complete issue explained here - http://www.fabiangwilliams.com/2015/03/13/troubleshooting-itunesconnect-invalid-binary-with-xamarin-project/
I've hit this issue twice, including a few days ago. In both cases the cause was that I included a bundle resource file (of my own proprietary format and definition) with the *.app extension. For some reason, Apple's validation choked on this. The hint was that the auto-generated email sent by iTunes Connect said something about requiring the zip extension. Red herring error message, but it jogged my memory that *.app is a "special" extension I can't use for my own stuff.
Just to be clear, this *.app file that caused an issue was buried inside my overall *.ipa file and its *.app directory. So you still need the standard format, you just need to be careful not to use Apple's extensions for your own proprietary data.

SoundCloud iOS SDK fails to find all header files. libSoundCloudUI/CocoaSoundCloudUI

I have spent hours over the past week trying to figure out why SoundCloud suddenly stopped working in an app I'm working on. Figuring it might have been file-location related, I completely removed it and re-added the submodules. Then re-added after that didn't work. Then re-added. Then searched. Then nothing.
I've tried re-adding the SoundCloud submodules, and have followed the directions on the SoundCloud site to the T, and still, I get compiler error after error, warning after warning. I add the linker flags as stated, and include the needed frameworks and dependencies. I have absolutely no idea why I'm getting missing file errors.
Changing the Header Search Path (in either MY project file or libSoundCloudUI) just shifts what file can't be found, and when I somehow manage to get SoundCloud to compile with my program, anytime I commit my changes to my Git repository, the submodules are lost and the next person to open the project doesn't have the code, thus making me start over. Pointing the header search path directly to the source code doesn't work, even when it's recursive.
What could be happening? No matter what I do, specifically CocoaSoundCloudUI
Some of the errors I've been getting:
Use of undeclared identifier: 'kTermsofService' (This has a few other keys that aren't being found)
Header file not found: <insert random file include in headers and in source folder>
If my app didn't need SoundCloud support I would have dropped it already. This has been such a nightmare - any help would make my life a lot easier.
Hi Sean Michael Dorian,
indeed, we have updated CocoaSoundCloudAPI and CocoaSoundCloudUI lately and according to your error message you have not updated both repos, i.e. you need to run
git submodule update --init --recursive.
If you have issues w/ submodules in general I recommend you switching to CocoaPods it turns the management of your library dependencies into a no-brainer.
We also provide a Demo Xcode project to check out such a setup.
This should help you resolving the issues let me know if you are missing anything there.

BlackBerry RIMAPPSA2 signing key required -- why?

I'm trying to sign our BlackBerry app, but now it's asking for "RIMAPPSA2" signing key, which is the signing key for private APIs (which isn't allowed in the app world I assume). So I want to remove this requirement so I can actually run the app on devices.
There's nothing in the build log. My app does NOT use any of the following packages (which the internet suggests might be the issue):
net.rim.vm.Persistable
net.rim.vm.*
net.rim.device.api.browser.field2.*
net.rim.device.api.browser.field2.debug.*
net.rim.device.api.script.*
org.w3c.dom.jsp2.* <- actually is uses org.w3c.dom.*, but I've had an app not require this that already had this package in it.
net.rim.device.api.io.Seekable
And I'm not importing any external JARs (although I was before). I'm using the 4.5 JDE.
How can I find out what is making the signer tool require this signature?
Is there any way to track down what is causing this signature (RIMAPPSA2) to be required?
This might be due to a bug in Eclipse or RIM. You might not be using the RIMAPPSA2 classes.
OK, so its hard to believe but this page might fix the problem for some:
Frustrations with Blackberry Developer plugins for Eclipse
Basically its a bug, and by changing the Application Descriptor, saving, removing & re-adding the JAR file, the problem is fixed.
Follow-up #1 - might not work:
The above solution enabled me to build & sign the app. Unfortunately the app won't run on the phone Module 'MyApp" attempts to access a secure API.
Follow-up #2 - this worked for me:
I documented a full solution that worked for me here:
BlackBerry - use own JAR file in own project
In my case, I was importing my own JAR file, and I needed to set that project's build type to be a MIDLET. Setting it as LIBRARY or APPLICATION caused problems.
I've not tried it, as I am waiting for my signing key.
If you use eclipse, you can have following settings that can be turned off.

Resources