Giter Site home page Giter Site logo

Comments (18)

PSBT avatar PSBT commented on August 23, 2024 1

I see! Tested the zip form 6.0.8 and it compiles both in simulators and devices. Thanks!

from swift-sdk.

tapashmajumder avatar tapashmajumder commented on August 23, 2024

This could be related to an MacOS/Xcode issue that some other users are having.

Can you please upgrade to latest MacOS and Xcode 10.2? Also if possible can you please attach a sample project with problem.

from swift-sdk.

PSBT avatar PSBT commented on August 23, 2024

Yes this no longer occurs in Xcode Version 10.2.1 (10E1001). Thanks!

from swift-sdk.

PSBT avatar PSBT commented on August 23, 2024

I'm still having issues. As I previously said, the project now compiles with the manual installation and Xcode version 10.2.1. I can even import the framework successfully:

@import IterableSDK;

But when I try to initialize the SDK with:

IterableConfig *config = [[IterableConfig alloc] init];
config.pushIntegrationName = @"<your-iterable-push-integration-name>";
[IterableAPI initializeWithApiKey:@"<your-api-key>" launchOptions:launchOptions config:config]

Xcode tells me:

Use of undeclared identifier 'IterableConfig'

What am I missing?

from swift-sdk.

PSBT avatar PSBT commented on August 23, 2024

Here you can find a single view Xcode project in which I integrated the SDK v6.0.8 manually and that shows the error mentioned above: https://www.dropbox.com/s/yizfigxh2vfy3v3/IterableTest_ManualInstallation.zip?dl=0

from swift-sdk.

tapashmajumder avatar tapashmajumder commented on August 23, 2024

@PSBT You may have helped me repro an issue that others were having :-). It appears that after Xcode 10.2 upgrade, objc projects are having the problem that you are having. I am looking into this.
related-issue

This problem seems to be restricted to objc code when using simulators. In the meantime can you please confirm that. your code will compile when using 'Generic iOS Device' or an actual 'iPhone'?

from swift-sdk.

PSBT avatar PSBT commented on August 23, 2024

If I don't add:

IterableConfig *config = [[IterableConfig alloc] init];
config.pushIntegrationName = @"<your-iterable-push-integration-name>";
[IterableAPI initializeWithApiKey:@"<your-api-key>" launchOptions:launchOptions config:config]

Then it compiles in both simulators and device. If I add the code above then it doesn't compile anywhere.

from swift-sdk.

tapashmajumder avatar tapashmajumder commented on August 23, 2024

@PSBT Thank you so much. I have reproduced this issue and I am working on it as mentioned in my previous comment. In the meantime, can you please compile using real device and not simulator. That will compile and get you going while I work in the fix.

from swift-sdk.

tapashmajumder avatar tapashmajumder commented on August 23, 2024

Hmm.. it it is compiling on real device for me.

from swift-sdk.

PSBT avatar PSBT commented on August 23, 2024

Sorry! It's also compiling for device for me!

from swift-sdk.

tapashmajumder avatar tapashmajumder commented on August 23, 2024

Great. You have helped me repro an issue. I will keep working on the fix while you work on real device in the meantime.

from swift-sdk.

PSBT avatar PSBT commented on August 23, 2024

Great!

from swift-sdk.

tapashmajumder avatar tapashmajumder commented on August 23, 2024

Can you please try this zip file?
IterableSDK.zip

from swift-sdk.

PSBT avatar PSBT commented on August 23, 2024

Yes. Now it compiles in the simulators!

from swift-sdk.

PSBT avatar PSBT commented on August 23, 2024

When can we expect an official release with this fix? Thanks!

from swift-sdk.

tapashmajumder avatar tapashmajumder commented on August 23, 2024

@PSBT I have added the correct zip files to the release. I have also updated our zip generation scripts.

I am closing this issue. Please reopen if the latest zip does not solve this problem for you. Thanks!

from swift-sdk.

PSBT avatar PSBT commented on August 23, 2024

Sorry I don't see a new release in https://github.com/Iterable/swift-sdk/releases.

from swift-sdk.

tapashmajumder avatar tapashmajumder commented on August 23, 2024

It is the same release 6.0.8 here.

I have just updated the zip files there since there is no code change.

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.