Comments (12)
Thanks for bringing this to our attention. We will take a look ASAP.
from swift-sdk.
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.
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.
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.
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.
@ArtemMysik - This is the same issue I was facing. Have you tried following the instructions I outlined in my previous post?
from swift-sdk.
@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.
@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.
@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.
@tapashmajumder Yes my project was using objc.
from swift-sdk.
@tapashmajumder Our project is using swift but we have bridging obj-c header for some libs
from swift-sdk.
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)
- EXC_BAD_ACCESS KERN_INVALID_ADDRESS Crash when syncing message dictionary in InAppManager
- handle(universalLink) does not behave as described. HOT 1
- If initial JWT token request fails, SDK doesn't ever request a new one HOT 2
- In-app messages black background does not expand to full height of phone screen HOT 1
- 6.4.12 contains semver-breaking API change HOT 2
- Type 'ReactIterableAPI' does not conform to protocol 'IterableAuthDelegate' HOT 1
- If the in-app message's position not being set to "full", the in-app will auto disappear with animation and app freezes on some devices HOT 2
- SPM Integration HOT 1
- Crash in RequestHandler.swift with InternalIterableAPI Initialization HOT 11
- InAppDisplayer: We need a way to set the `topViewController`
- [Bug]: crash on NWPathMonitor HOT 1
- After updating Iterable to 6.4.17 Circle CI pipeline is failing - ❌ error: Build input file cannot be found: '/Users/distiller/project/Pods/Iterable-iOS-SDK/swift-sdk/Internal/DependencyContainerProtocol.swift'. Did you forget to declare this file as an output of a script phase or custom build rule which produces it? (in target 'Iterable-iOS-SDK' from project 'Pods')
- Add Privacy Manifest HOT 6
- Image as Attachment in Push Notification payload doesn't get displayed
- Rename the package sdk something different than `swift-sdk` HOT 4
- Add OnSuccessHandler and OnFailureHandler to logoutUser() function HOT 1
- Swift access race in IterableSDK.Pending.onSuccess
- Making a `getMessages` once per day
- Thread Performance Checker failure
- Xcode 16 beta 2 throws error stating Type 'WKWebView' does not conform to protocol 'WebViewProtocol' HOT 9
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from swift-sdk.