teads / TeadsSDK-iOS

Teads SDK for iOS - Premium branded "outstream" ads
https://support.teads.tv/support/solutions/articles/36000314785-ios-sdk-developer-guide
MIT License
27 stars 11 forks source link

Fix: Cannot find protocol declaration for 'TFAAdDelegate #157

Closed nihp closed 2 years ago

nihp commented 2 years ago

Fix: Cannot find protocol declaration for 'TFAAdDelegate

How can I upgrade my Teads Sdk and How can i check the version which was available now in the Xcode?

Screenshot 2021-08-05 at 10 36 25 AM
github-jeremy-grosjean commented 2 years ago

Hey, can you give me more details, what SDK version do you want to use? What's the version that is causing you issue?

nihp commented 2 years ago

I am not using the latest version for sure with arm64 update. But I have the arm64 support m1 machine. Here I can't able to find the Teads framework version in info.plist file.

Could you please let me know how the Teads sdk will be updated. How can I update the framework in my project.

Note: I am not using pod. Using Objective-c with frameworks

Using the import as below:

#import <TeadsSDK/TeadsSDK.h>

github-jeremy-grosjean commented 2 years ago

Is there a particular reason why you don't want to use cocoapods? Is your project full objective-C? If so I advise you to create at least one file in swift in your project it could help.

Where did you get the framework from this repository in TeadsSDK.xcframework?

nihp commented 2 years ago

No, I don't have any particular reason.

Now I have TeadsSDK.framework file in my app. But also have other xcframeworks file too.

Is your project full objective-C? If so I advise you to create at least one file in swift in your project it could help.

Could you please let me know how this will be done?

github-jeremy-grosjean commented 2 years ago

You can just add a new file and set swift file when you create it. It should ask you to add a header, you need to say yes.

nihp commented 2 years ago

@jeremygrosjean Could you please let e know how can I check the version in the code.

My app is objective-c but i have seen the compile source have some swift files. Could you please let me know the above sdk updation is done by adding the git url in my app. It shows the swift dependency in my Xcode. Then what needs to be done.

Also shall I need to change to import as well?

Clarification: Does the TeadsSDK has the Objective-c support or only swift projects

github-jeremy-grosjean commented 2 years ago

The Teads SDK cannot work with a 100% objective C project but if there is one swift class in the project it will work.

Are you using SPM with an objc projet? I strongly advise you to use cocoapod. I think it will make your life easier.

github-jeremy-grosjean commented 2 years ago

Without any response of your part I considered that it's not a problem anymore.