Code Monkey home page Code Monkey logo

Comments (8)

iziz avatar iziz commented on August 29, 2024

Are you using cocoapods or added it manually ?

from libphonenumber-ios.

mypark avatar mypark commented on August 29, 2024

using cocoapods

from libphonenumber-ios.

mypark avatar mypark commented on August 29, 2024

so I think I figured out the problem: the "-" in the path gets replaced with an underscore automatically by cocoapods. Thus it should be

#import <libPhoneNumber_iOS/NBPhoneNumber.h>

Perhaps it might be good to add that to the readme for a swift cocoapods example?

However I'm still running into another issue - error no such module when I try to add import statements to the swift file say MyViewController.swift

import NBPhoneNumber
import NBPhoneNumberUtil

from libphonenumber-ios.

iziz avatar iziz commented on August 29, 2024

OK I will add in readme soon.

from libphonenumber-ios.

mypark avatar mypark commented on August 29, 2024

so about the issue I'm still having - I should just be able to use the import statement as noted above - what am I missing?

from libphonenumber-ios.

iziz avatar iziz commented on August 29, 2024

You don't need import it in swift, just use it.
And, swift guide was updated it in README.

from libphonenumber-ios.

mypark avatar mypark commented on August 29, 2024

I think the readme might be wrong if using cocoapods

#import "libPhoneNumber-iOS/NBPhoneNumberUtil.h"
#import "libPhoneNumber-iOS/NBPhoneNumber.h"

didnt work for me

this import statement below did work for me

#import <libPhoneNumber_iOS/NBPhoneNumberUtil.h>
#import <libPhoneNumber_iOS/NBPhoneNumber.h>

however I would have to have an import statement in the swift file as well to NBPhoneNumberUtil if using cocoapods - which didn't work for some reason.

from libphonenumber-ios.

iziz avatar iziz commented on August 29, 2024

In may case it didn't changed ("-" to "_").
Anyway, you can see your library path in project navigator view.

[screen shot 2015-06-01 at 10 24 22 am]

And did you checked your bridging header in build setting ?
Maybe you should check your build setting and relative file path.

from libphonenumber-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.