Code Monkey home page Code Monkey logo

Comments (7)

davide-scalzo avatar davide-scalzo commented on May 29, 2024

How does you Podfile look like? Seems like an issue with the Pod itself, as RNMixpanel is loading and looking for Mixpanel, but can't find it.

from react-native-mixpanel.

dajomu avatar dajomu commented on May 29, 2024

It just has the one line in it, that mixpanel themselves tell you to use here -
pod 'Mixpanel'

Since posting I've found a solution, on stackoverflow -
Go to your target Build Settings -> Other linker flags -> double click . Add $(inherited) to a new line.

It was apparently because I was getting errors on pod install that looked like this -

[!] The `Corona [Debug]` target overrides the `OTHER_LDFLAGS` build setting defined in `Pods/Target Support Files/Pods/Pods.debug.xcconfig'. 
This can lead to problems with the CocoaPods installation

Hopefully this will help anyone else who comes across this issue.

from react-native-mixpanel.

davide-scalzo avatar davide-scalzo commented on May 29, 2024

Glad you could fix it, next time it would be best to use the command pod init first, which should create a Podfile looking like this

# Uncomment this line to define a global platform for your project
# platform :ios, '7.0'

source 'https://github.com/CocoaPods/Specs.git'

target 'YourProject' do

end

target 'YourProjectTests' do

end

to which you can add pod 'Mixpanel' like so:

# Uncomment this line to define a global platform for your project
# platform :ios, '7.0'

source 'https://github.com/CocoaPods/Specs.git'

target 'YourProject' do
    pod 'Mixpanel'
end

target 'YourProjectTests' do

end

from react-native-mixpanel.

dajomu avatar dajomu commented on May 29, 2024

So does that mean that I don't have to use the xcworkspace that is generated? It would add it to the project itself?
Also, would I specify the Project just as 'YourProject', or would it be 'YourProject.xcodeproj'?

Thanks very much for the help.

from react-native-mixpanel.

davide-scalzo avatar davide-scalzo commented on May 29, 2024

Still need to use the workspace, but you just need to input the pod init command and it will take care of generating workspace and Podfile.

I would suggest to look at this https://cocoapods.org/#get_started

from react-native-mixpanel.

dajomu avatar dajomu commented on May 29, 2024

Thanks again.

from react-native-mixpanel.

davide-scalzo avatar davide-scalzo commented on May 29, 2024

No worries! Let me know if that works better :)

from react-native-mixpanel.

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.