Giter Club home page Giter Club logo

approov-service-alamofire's Introduction

Approov Service for Alamofire

A wrapper for the Approov SDK to enable easy integration when using Alamofire for making the API calls that you wish to protect with Approov. In order to use this you will need a trial or paid Approov account.

Please see the Quickstart for usage instructions.

approov-service-alamofire's People

Contributors

ivolz avatar jexh avatar richardmtaylor avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

approov-service-alamofire's Issues

ApproovSession and Unit Tests in a Package

Hello,

I'm working on a network package for our application. And I have an error when running my Unit Tests with ApproovSession in my dependencies.

Here are the contents of my Package.swift file:

let package = Package(
    name: "NetworkModule",
    platforms: [.iOS(.v13)],
    products: [
        .library(
            name: "NetworkModule",
            targets: ["NetworkModule"]),
    ],
    dependencies: [
        .package(url: "https://github.com/Moya/Moya",
                 from: "15.0.3"),
        .package(url: "https://github.com/apollographql/apollo-ios.git",
                 from: "1.2.1"),
        .package(url: "https://github.com/approov/approov-service-alamofire.git", // NEW LINE ADDED
                 from: "3.1.1")
    ],
    targets: [
        .target(
            name: "NetworkModule",
            dependencies: [.product(name: "RxMoya", package: "Moya"),
                           .product(name: "Apollo", package: "apollo-ios"),
                           .product(name: "ApproovSession", package: "approov-service-alamofire")]),// NEW LINE ADDED
        .testTarget(
            name: "NetworkModuleTests",
            dependencies: ["NetworkModule"],
            resources: [.copy("Data/JSONs")]),
    ]
)

Just by added these two lines, it's impossible for me to run my tests anymore. Here is the error:

xctest[16990:83658] [loading] Error loading /Users/*****/Library/Developer/Xcode/DerivedData/*****-cxcxmeclusvrvtcsbnxlylzmfyry/Build/Products/Debug-iphonesimulator/NetworkModuleTests.xctest/NetworkModuleTests (170):  dlopen(/Users/*****/Library/Developer/Xcode/DerivedData/*****-cxcxmeclusvrvtcsbnxlylzmfyry/Build/Products/Debug-iphonesimulator/NetworkModuleTests.xctest/NetworkModuleTests, 0x0109): Library not loaded: @rpath/Approov.framework/Approov

I also tried on a real device too and I got the same result.

Do I integrated incorrectly ? Does it work differently for a Package ?

Thank you for your help.

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.