Code Monkey home page Code Monkey logo

Comments (14)

tapashmajumder avatar tapashmajumder commented on August 21, 2024 1

@ileitch We have removed the file IterableConststants.h and moved them to Swift in the branch linked below. Can you please check if this fixes your problem?

https://github.com/Iterable/swift-sdk/tree/feature/mob-680-cocoapods

You can try this by setting this in your Podfile
pod 'Iterable-iOS-SDK', :git => 'https://github.com/Iterable/swift-sdk.git', :branch => 'feature/mob-680-cocoapods'

@ZmicierBiesau You can also give this branch a try?

from swift-sdk.

tapashmajumder avatar tapashmajumder commented on August 21, 2024 1

@ZmicierBiesau I have just created an empty project and it is working with use_modular_headers!

Which version of Xcode are you using?

from swift-sdk.

ZmicierBiesau avatar ZmicierBiesau commented on August 21, 2024 1

@tapashmajumder I just recreated an app and now everything is working. Thank you very much.

from swift-sdk.

tapashmajumder avatar tapashmajumder commented on August 21, 2024

typealias defined in Swift is not supported in Objective C. That is why we are defining typedef in Obj C file. This was quite some time back. We will take a look at this again.

from swift-sdk.

ZmicierBiesau avatar ZmicierBiesau commented on August 21, 2024

If we use modular headers instead of frameworks, we will easily get this error.
target 'swift-sample-app' do
use_modular_headers!
pod 'Iterable-iOS-SDK'
end

Will definitely lead us to problems.

from swift-sdk.

tapashmajumder avatar tapashmajumder commented on August 21, 2024

@ileitch @ZmicierBiesau By the way this branch listed is just meant for testing please don't use this in production. This is just to test whether this fix works. You may have to fix some compilation problems since this branch contains unreleased code.

from swift-sdk.

ZmicierBiesau avatar ZmicierBiesau commented on August 21, 2024

@tapashmajumder I've tried your solution, now "missing" error disappeared.
But I'm receiving a new one:
Module map file '/Users/user/Library/Developer/Xcode/DerivedData/swift-sample-app-cyslngeklqgnpscugtkxvgregudy/Build/Products/Debug-iphonesimulator/Iterable-iOS-SDK/IterableSDK.modulemap' not found

from swift-sdk.

tapashmajumder avatar tapashmajumder commented on August 21, 2024

@ZmicierBiesau Thanks for the update. I think the issue you are seeing may be different than what @ileitch is mentioning. Would you be able to create a small sample project to repro the error you are seeing?

from swift-sdk.

ZmicierBiesau avatar ZmicierBiesau commented on August 21, 2024

@tapashmajumder yes, this is what I'm doing. I using just an empty project with podfile above.

from swift-sdk.

ileitch avatar ileitch commented on August 21, 2024

Can confirm that the change now builds successfully.

However, some other change in that branch is causing a warning:

Ignoring duplicated output file: '.../DerivedData/Build/Products/Debug-iphonesimulator/Bowtie.app/Assets.car' in shell script build phase '[CP] Copy Pods Resources'. This warning represents an extremely serious project misconfiguration and will likely cause some shell scripts in your project to be skipped entirely, leading to other build failures or missing files in the build directory. This will be a hard error in the future. (in target 'Bowtie')

It looks like the following resources are now being included?

install_resource "${PODS_ROOT}/Iterable-iOS-SDK/swift-sdk/Resources/IterableInboxCell.xib"
install_resource "${PODS_ROOT}/Iterable-iOS-SDK/swift-sdk/Resources/Assets.xcassets"

from swift-sdk.

tapashmajumder avatar tapashmajumder commented on August 21, 2024

@ileitch Are you able to proceed with the warning or is it causing any other problem down the line?

I believe when you are building a static library vis use_modular_headers! resources are included by Cocoapods.

Can you please have your Iterable customer service rep open a Jira ticket with relevant details?

from swift-sdk.

ileitch avatar ileitch commented on August 21, 2024

The build completes and the app ran, but I didn't investigate further. I'm currently using this fork as a static library and those resources are not being included.

from swift-sdk.

tapashmajumder avatar tapashmajumder commented on August 21, 2024

@ileitch Thanks for the update. Please feel free to open a Jira ticket so that we can take a look at the issues you are having.

from swift-sdk.

tapashmajumder avatar tapashmajumder commented on August 21, 2024

Just released version 6.1.1. This removes all Objective C files in our SDK. If this does not solve your issues please have your Iterable customer service rep open a Jira ticket. Thanks!

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.