So now do I have to manually create a directory by the name of ads. If yes how do you do that. And you are saying MoPub framework should be inside that directory. What I do is ( as mentioned in builldbox article ) is to drag and drop MoPub SDK under BB Player (top one with blue color icon). Is what I am doing with MoPub SDK the wrong way ? This is what my current Xcode project looks like.
This ads which is being created as a file and not a directory is because of my mistake or because of fault in Buildbox export ? The ads remain a file and not a directory even when I don't add MoPub SDK and make any changes.
Xcode 10 is good. Thats what I use. Ok, I am not concerned about your directory size, this could be caused by frameworks possibly. Anytime you see a linker error that means that Xcode can not find a specific file or library. In your case Xcode can not find MoPub because it has been told to look inside the "ads" directory, which you do not have. I am not sure how Xcode was told to look for MoPub in that directory. Since I don't use MoPub I believe when you did the setup you must have told your app/game to look for it in that directory. I suggest you backtrack to when you did the MoPub install, because that is the issue. Normally you would just place a framework file within the FrameWorks directory by just dragging and dropping it within Xcode. Some where Xcode was told to look for a "ads" directory. Do you remember setting it up like this?
No. All I did was replace the AdIntegrator.mm and AdIntegrator.h file provided by Buildbox in their article and added the MoPub SDK given by them in their article. Article Link :- http://help.buildbox.com/advertising-and-sdks/using-the-3rd-party-api-mopub-example
I did not make any manual changes. I have no knowledge about programming and hence am not capable of making any manual changes on my own.
Yes, you installed correctly by dragging and dropping. And dragging and dropping it where you did should work. Now within a file inside Xcode, probably the AppDelegate.mm file, you need to place a reference to find that MoPub file that your dragged in by simply placing a import statement, Like I have here, however I am using AppsFlyer. #import <AppsFlyerLib/AppsFlyerTracker.h> Now you see that I am importing a file within the AppsflyerLib directory. You should have a file inside your MoPubSDK directory, which is what you dragged into your Xcode. Inside that directory there is a file that you want to import. So it would look like #import <MoPubSDK/filename> The filename will be named something like MoPubSDK.h or something like that with a ".h" extension. Not sure what the filename is called because I don't use MoPub.
Two things that might help. Do a screenshot of the code inside your AppDelegate.mm file, specifically I need to see the first 10 lines of code in that file. Secondly send a screenshot of what is inside the MoPubSDK directory in your Xcode.
Surely. Here you go. First screenshot is of AppDelegate.mm and the second two screenshot of MoPub directory.
Ok. Good. That appears to be setup correctly. When you dragged and dropped the MobPub library into Xcode, Xcode should have asked you if you wanted it to create a reference to the file. Do you remember if it did? You would have answered yes and Xcode should have built a reference to it. What I don't like and what doesn't look right to me is the MoPub frameworks directory that was dragged in. It has many sub-directories, which I am not used to seeing, but this may be normal, I don't use MoPub so I am struggling to see why so many files inside a Frameworks directory. Do a screenshot of your Adintegrator.mm file. I apologize for all of the screenshots, but I am trying to see what is going on here.
No you don't need to apologies rather I should be thankful that you are helping me. Here you go. Screenshot for AdIntegrator.mm.
I see one issue. Inside your AdIntergrator.h, change #import "MoPub.h" to #import <MoPubSDK/MoPub.h> You have quotation marks there, those should not be there.
Ok. these files look good. I think if you change the import statement it might work. Try it and let me know if you still get a linker error.
Yeah same error. Could it be a problem with Buildbox Export or steps mentioned in Buildbox Article. Or AdIntegrator.h or AdIntegrator.mm or MoPub SDK provided by Buildbox