Applovin tvOS LIbrary Issues - xcode

I apologize but I am new to tvOS development, an programming in general.
IDE: Xcode 7.2.1
language: Swift 2
platform: tvOS
I am currently trying to integrate the AppLovin SDK for my tvOS app.
I have followed the documentation and have everything set up for Swift.
However, there is one glaring problem. when downloading the SDK the static library File: libAppLovinTVOS.a does not populate as a library.But rather a generic Document file.
I have downloaded it a couple times to see if it was just an error in downloading. Even tried to go to their gitHub to no avail. Any help will be deeply appreciated.
(sorry for breaking up the text it helps with my dyslexia)

when downloading the SDK the static library File: libAppLovinTVOS.a does not populate as a library.But rather a generic Document file.
There's nothing wrong. The file is a static library, not a framework, and it's completely normal for those to appear as plain old document files. I've got several similar libraries in my iOS project right now and they have exactly the same generic icon.

Related

XCode doesn't archive unity build

I am trying to push a unity app to the app store (this is a first for me).
Unity builds the project fine, however when I import it in XCode, Archiving or building doesn't work.
The problem occurs when precompiling Prefix.pch
I need to use the geolocalization of the device in order to run my app.
I think that is what creates the framework related issues I am getting (it seems that the errors are in the APK and not in my code).
There files that are giving me errors are located in ios15.5>Frameworks>CoreLocation
I suppose CoreLocation is not imported ?
I did however try to Embed the CoreLocation framework in the Targets>General Tab like so but I have no idea if that is the way to do it:
I am definitely missing something but I don't know what to do at this point.
I am trying to do this using a mac mini with Monterrey OS, XCode 13.4, unity 2021.3.7.
My target os is iOS14.
If someone could give me some advice it would be greatly appreciated !
It seems this question was already answered here:
In the files generated by the unity builds, in
Libraries>Plugins>iOS>NAtiveToolkit
there are files named Locale.h and locale.mm that are conflicting with the Locale.h file of the project.
Renaming them to LocaleTools.h and LocaleTools.mm seemed to do the trick

GPUImage won't compile on iOS 12

I have these errors:
Cocoa.h File Not Found (in GPUImageView.h)
Unknown Type Name: **NSOpenGLContext, CVOpenGLESTextureCacheRef (GPUImageContext)
Now, I tried to fix all these errors, but ended up making things worse.
I know OpenGL ES is deprecated in iOS 12, but as I understand deprecation, it should still be working for the moment, right?
For error #1, I don't understand what's a MAC OS framework (cocoa.h) doing in here (some of the references are not surrounded with #IFDEF MAC_OS statements).
As for error #2, these types are defined within the AppKit framework (also a MAC_OS framework, not an iOS framework).
I have considered switching to GPUImage2, but it's a ton of work as it's not as easy as swapping the frameworks, I'll have a lot of code to rewrite. I also see Brad Larson (the semi-God behind this framework) has already started working on GPUImage3 which will use Metal instead of OpenGL ES but it's still work-in-progress but it won't be a simple swap from GPUImage v1 to GPUImage v3.
I found a way to fix it. Maybe it will help someone with the same problem. The GPUImage main folder contains the iOS and the MAC projects.
Go to the framework folder, and delete the GPUImageMac.xcodeproj file.
Then go to the Source folder located within the framework folder, and delete the whole folder named Mac.
Clean your project and rebuild. VoilĂ !
Good luck!

Swift Xcode debug auto complete

I have been porting an app from Objective C to Swift. In Objective C I get autocomplete in the Xcode debug pane as shown. However, the Swift version does not. I may be missing something simple but after working around this for a few months I give up. Attached are relevant screenshots (top is Objective C).
I realize this may not be a language specific feature but how do you get debug autocomplete functionality in Swift like Objective C?
Try the control+Space combination forcefully at locations. Sometimes it helps.
There's also this link I found. maybe it could help:
XCode 6 isn't autocompleting in swift
Answer is late, but I want to see my answer more people for this situation.
This is not Xcode Problem. Erasing Derived data is just temporary work.
I guess you are included by one of them
Your application is support Above iOS 7 (not iOS 8)
Use Cocoapod or 3rd party app
Autocomplete is not working when you develop with swift above iOS7. Swift did't recommend to use static lib, but iOS7 support only static lib not dynamic lib.
(see this post https://blog.cocoapods.org/CocoaPods-0.36/,
http://corinnekrych.blogspot.kr/2015/04/how-well-does-swift-plays-on-ios7.html)
Change your project to iOS 8
Cocoapod will need use_frameworks! if you want to support dynamic lib.
If you use dynamic link, You don't have to write header in Bridge_header. Import it in Swift file like Import UIKit
One more trick is just clean your Project will make Swift Auto complete, but after rebuild, you can't use auto complete.

PhoneGap 2.1.0 iOS Mac Xcode CordovaLib

Trying to get some solid documentation on how to get the iPhone emulator in Xcode running with my PhoneGap 2.1.0 project. I pulled it down from a git repo that I originally built on my Mac Pro, now want to run it on my Mac Air. There is a lot of confusion of the terminologies between PhoneGap and Cordova that make it near impossible for a beginner to figure out how to set up a project.
The problem I'm getting when I open my PhoneGap project in XCode is this error:
Lexical or Preprocessor Issue 'Cordova/CDVViewController.h' file not found
Clearly the Cordova class files aren't being seen by XCode, although I included the path to the CordovaLib classes in Preferences -> Source Trees (~/Documents/CordovaLib/.
Just want to get this thing running! Thanks!
Not sure if this will help you, but I am starting to try to get to grips with PhoneGap/Cordova, and found this excellent guide on getting it going.
It uses Cordova, which I am led to believe is the source of PhoneGap (Still SLightly Confused tbh), hopefully it will help you in one way or another, it certainly got me up and running :)
https://docs.google.com/viewer?a=v&pid=forums&srcid=MDUyNDQxMjA3MzY2NzYzNDU0MjgBMTAxMDE4ODcyODc5Njc4NDQwMzQBOWNxRFF3Z0UyX29KATQBAXYy

How do I build frameworks in Xcode?

I'm trying to use the GData framework, so I downloaded it and it came as an Xcode project so I assumed I needed to build it. So I opened it up and and clicked run and it compiled fine, but where do I go to access the .framework it created? I'm new to frameworks and have only been using xcode for a month or two so you'll have to excuse my lack of knowledge about it.
The documentation will help you
Anyway, by default the target is GDataUnitTest, just change it to GDataFramework. Once you compile it you will find the framework in the folder of the XCode Project called target.

Resources