GithubHelp home page GithubHelp logo

Comments (12)

tapashmajumder avatar tapashmajumder commented on August 21, 2024

Thanks for bringing this to our attention. We will take a look ASAP.

from swift-sdk.

tapashmajumder avatar tapashmajumder commented on August 21, 2024

I don't seem to be having any issues with it. Can you please list steps to repro? Are you dragging and dropping the framework files from releases or are you using Cocoapods/Carthage?. If possible, please include your sample app.

from swift-sdk.

tolgahan-arikan avatar tolgahan-arikan commented on August 21, 2024

Hey @tapashmajumder, we have the same problem. Yes, we are adding framework files from releases directly to our project. Sorry, I really don't have time for creating a sample app but this problem is keeping us from updating to swift 5, would really appreciate a fix.

from swift-sdk.

tapashmajumder avatar tapashmajumder commented on August 21, 2024

Hi @tolgaarikan I have added new zip files to the 6.0.8 release yesterday (2019-04-23). Can you please try those and let us know if it worked?
Also, I understand that you may not have time to create sample project. Can you please copy/paste or attach screenshot of error you are seeing? Thanks!

from swift-sdk.

ArtemMysik avatar ArtemMysik commented on August 21, 2024

Hi @tapashmajumder, I work with @tolgaarikan . We use .framework. The error when building for simulator: Cannot find protocol declaration for 'IterableURLDelegate' in ProjectName-Swift.h file

from swift-sdk.

irtemed88 avatar irtemed88 commented on August 21, 2024

@ArtemMysik - This is the same issue I was facing. Have you tried following the instructions I outlined in my previous post?

from swift-sdk.

tapashmajumder avatar tapashmajumder commented on August 21, 2024

@irtemed88 I am trying to first reproduce the problem and I am not able to repro this. Please note that I have attached IterableSDK.zip just two days ago. The previous one was not right.

@ArtemMysik Here is my sample code and it is working as expected.

import UIKit
import IterableSDK

@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate {

    var window: UIWindow?


    func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
        // Override point for customization after application launch.

        let config = IterableConfig()
        config.urlDelegate = self
        IterableAPI.initialize(apiKey: "")
        
        return true
    }

    func applicationWillResignActive(_ application: UIApplication) {
        // Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state.
        // Use this method to pause ongoing tasks, disable timers, and invalidate graphics rendering callbacks. Games should use this method to pause the game.
    }

    func applicationDidEnterBackground(_ application: UIApplication) {
        // Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later.
        // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits.
    }

    func applicationWillEnterForeground(_ application: UIApplication) {
        // Called as part of the transition from the background to the active state; here you can undo many of the changes made on entering the background.
    }

    func applicationDidBecomeActive(_ application: UIApplication) {
        // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface.
    }

    func applicationWillTerminate(_ application: UIApplication) {
        // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:.
    }
}

extension AppDelegate : IterableURLDelegate {
    func handle(iterableURL url: URL, inContext context: IterableActionContext) -> Bool {
        return true
    }
}

from swift-sdk.

tapashmajumder avatar tapashmajumder commented on August 21, 2024

@irtemed88 Can you please try with our latest zip file from 2019-04-23 (updated SDK version 6.0.8) and see if you are also seeing any problems?
IterableSDK.zip

from swift-sdk.

tapashmajumder avatar tapashmajumder commented on August 21, 2024

@irtemed88 @ArtemMysik @tolgaarikan I was able to repro this using objc project. This works fine when using Swift but is a problem when using Objc. I am looking into this. In the meantime can you please confirm that you are using Objc? Thanks!

from swift-sdk.

irtemed88 avatar irtemed88 commented on August 21, 2024

@tapashmajumder Yes my project was using objc.

from swift-sdk.

ArtemMysik avatar ArtemMysik commented on August 21, 2024

@tapashmajumder Our project is using swift but we have bridging obj-c header for some libs

from swift-sdk.

tapashmajumder avatar tapashmajumder commented on August 21, 2024

Thank you @irtemed88 @ArtemMysik. It appears I missed the objc part earlier and wasn't able to repro. Now I have reproduced and fixed the issue on our end. Many many thanks to @irtemed88.

I have attached the correct zip file which will work with objc code in both device/simulator.
I have also fixed our zip generation scripts. I am marking this issue as closed.

from swift-sdk.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.