How to solve _OBJC_CLASS_$ reference error - objective-c

We have a standalone video playback app, in which we have Chromecast working fine. Now we are trying to convert this app as a framework and add it in the parent app.
While building framework, reference error pops up. If I comment out the code in RNGoogleCast.m, where these classes [see attached image] are referenced then the framework builds successfully and works fine with parent app. With commented code, I don't see the chromecast button while playing video.
In Build Setting of Framework, other linker flags set to -ObjC. If I remove it or keep the same value as an app, then frameworks build successfully but don't work with the parent app.
Please let me know if you need more information from the app or framework.
Can someone help me to get rid of these errors and get the chromecast button enabled while playing video?
Also, raised issue here: https://github.com/react-native-google-cast/react-native-google-cast/issues/126

Linker errors come when you're trying to use certain classes and the linker doesn't know where they come from. Chances are, you imported the correct header files, but you have not added linked frameworks/libraries that contain the GCK* classes.
To fix this issue, you should go to your project settings, then build phases. Open the dropdown menu "Link Binary With Libraries", and from here you can click the plus to add the framework/library. In your case, I believe it's GoogleCast.framework. With Cast, there are a few extra steps listed here: https://developers.google.com/cast/docs/ios_sender

Related

React Native source maps (and breakpoints) in Chrome not matching

Is anyone having the issue where when they add breakpoints in the Sources tab they can't add them to most lines, and when you do, the debugger breaks on another line.
The source maps don't seem to be matching up properly. I'm using my actual device. Not sure if that's an issue. Are there any additional setup requirements for debugging in chrome other than what is mentioned here:
https://facebook.github.io/react-native/docs/debugging.html
???

how to navigate to settings in android emulator using robotium?

I am a newbie for Robotium and till then I managed to learn a lot by directly writing test cases for public websites and sorted out several issues from answers in stackoverflow. now, I seemed to hit the wall at this (probably)trivial problem.
I would like to navigate to 'Settings' icon which is inside 'Apps' menu of the android emulator using some sort of 'robotium-solo' method.
This is my failed attempt:
solo.sendKey(KeyEvent.KEYCODE_HOME);
//solo.clickOnImageButton(2); // no success!
//solo.clickOnActionBarItem(2); // no success!
solo.clickOnText("Settings");
solo.clickOnText("Music");
I checked for any KEYCODE_var for home screen 'app' icon but couldn't find one.
There is no useful log message in DDMS to figure out the starting activity when clicked/tapped on that button.s
Please guide me whether my approach is any good and help me with an answer. Thanks.
you can check with getCurrentViews() and have the list of views displayed before clicking the menu button and after clicking the menu button.By comparing them you can get the view of the new views displayed (i.e. settings button).
After getting the view,you can go with solo.clickOnView(ViewNameObtained);
This will solve your problem for sure.
As far as I know, navigating to settings is not possible with robotium. Even if you would be able to go there you cannot perform any other action as Settings are not port of your application. Android Instrumentation allows performing actions only within one package and robotium is only wrapper for that, so it's not able to click outside your application as well.
You can use UI Automator for that.

VB.NET Ignoring bad references at compilation

I've got a problem with a program that references a third party ActiveX component that I've been refused permission to distribute.
The AX component is used on some user defined controls which the user can add programatically, which makes isolating them fairly easy.
However, the problem is that if the program is installed on a machine without the third party component then it just crashes, where I would much prefer it to just alert the user to the missing component and then disable the functionality that requires the component.
In the past I've tried adding the reference programatically but have found that this solution doesn't work with this particular control.
Any suggestions as to a strategy that allows the program to run despite missing referenced components would be much appreciated.
You use a launcher app. Deploy both apps. The shortcut you show to the user should start your launcher app. The launcher will first check that all the dependencies are in place, and if so go on to start your app. Otherwise, it will show the user a nicer error message, and perhaps point them to where they can find the missing dependency.

Adding project to existing one

I have a table view project with multiple controllers and another one that is a image gallery project and have a Three20 project added to it. I found it in internet.
So i want when a table view cell is tapped a image gallery opens. Both projects work fine when i test em separated . I tried dragging gallery project and adding it to my main project ,but and then adding a headers to my project ,but the only thing i got are errors. Any ideas
It's hard to tell you anything, because you didn't mention detailed information of your works. At least, we must know that if you are using XCode 4, what kind of errors you have got! and so on...
Moreover, do you know how to link static library into XCode project. That's the way it should work!

"Loading Checklog" error while loading quartz composition using Quartz Composer Patch Controller

I've created a composition in Quartz Composer, and am following the examples on "Quartz Composer Programming Guide" on Apple's website for connecting it to a XIB.
My goal is to be able to bind inputs in my Quartz Composition with UI controls (sliders, keyboard input, etc.) within my Cocoa application. It seems that this tutorial is sufficient for what I want to do.
However, I can't get the Quartz Composer Patch Controller to load my composition. I add the Patch Controller to my XIB document window, then I go to "Load Composition".
Every time I click "Load Composition", I choose my file and it gives me an error message box that says "Loading Failed: Loading CheckLog".
Here's what may be interesting: I can view my composition if I load it with a QCView object, but can't load it in the Patch Controller.
I've tried loading other compositions, I get the same error. I tried in a different computer, on a new project, same XCode version (4.0.1), and I still get the error.
I've only done the steps outlined in the tutorial, and I am referencing the Quartz framework in my project. My first thought is that there might be some procedures that are not outlined in the programming guide that I may be skipping.
So how do I resolve this error? Please help!
I assume the “CheckLog” bit means that there’s something in the system log (open /Applications/Utilities/Console.app and look under Console Log). There might also be something in ~/Library/Logs/. (Shamefully bad UI in any case, of course.)
I had this problem - solved it by making sure that I was using the corresponding version of quartz composer and xcode since I have multiple versions of developer tools installed. (use both applications contained within the same developer folder).