GithubHelp home page GithubHelp logo

Comments (6)

sharoni avatar sharoni commented on August 16, 2024

This pod is not using use_frameworks flag so you need to add #import <Pingpp.h> to your aplication's bridging header.

from pingpp-ios.

lawrenceching avatar lawrenceching commented on August 16, 2024

I installed the SDK using Pod successfully.
I've imported the Pingpp in my bridging header like this:

#import <MBProgressHUD/MBProgressHUD.h>
#import <WebViewJavascriptBridge/WebViewJavascriptBridge.h>
#import <Pingpp/Pingpp.h>

But it's not work. I'm new in iOS and Swift. I cannot figure out what is wrong.
Hope for help, thank you~

from pingpp-ios.

sharoni avatar sharoni commented on August 16, 2024

@lawrenceching could you show how your Podfile looks like?

from pingpp-ios.

lawrenceching avatar lawrenceching commented on August 16, 2024

Yes of cause.

# Uncomment this line to define a global platform for your project
# platform :ios, '8.0'
# Uncomment this line if you're using Swift
source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '8.0'
use_frameworks!

target 'PingxxDemo' do
    pod 'SwiftyJSON', :git => 'https://github.com/SwiftyJSON/SwiftyJSON.git'
    pod 'Alamofire', '~> 3.0'
    pod 'Kingfisher', '~> 2.0'
    pod 'TSMessages', :git => 'https://github.com/KrauseFx/TSMessages.git'
    pod 'MBProgressHUD', '~> 0.9.2'
    pod 'WebViewJavascriptBridge', '~> 5.0'
    pod 'Pingpp', '~> 2.2.0'
end

target 'PingxxDemoTests' do

end

target 'PingxxDemoUITests' do

end

I import the SDK in my view controller swift file

import Pingpp

Xcode shows up the "No such module" message.

from pingpp-ios.

sharoni avatar sharoni commented on August 16, 2024

@lawrenceching you don't need to explicitly import it in swift files. You have already done so in bridging header. Remove the import Pingpp from swift file and just use Pingpp (e.g. try Pingpp.setDebugMode(true)) to see if it resolves the class.

from pingpp-ios.

lawrenceching avatar lawrenceching commented on August 16, 2024

Thanks a lot! You make my day!

from pingpp-ios.

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.