Git Product home page Git Product logo

Comments (5)

BrandonStalnaker avatar BrandonStalnaker commented on June 23, 2024

Hi James did you add the mParticle iOS SDK to your podspec before calling pod install? The line should look something like this.
pod 'mParticle-Apple-SDK', '~> 7.8'

from react-native-mparticle.

j86hughes avatar j86hughes commented on June 23, 2024

Hi Brandon thanks for your feedback 🙏

I've added the mParticle iOS SDK to my Podfile and after calling pod install I now get several errors in my RNMParticle.m file

node_modules/react-native-mparticle/ios/RNMParticle/RNMParticle.m:44:33: No visible @interface for 'MParticle' declares the selector 'setATTStatus:withATTStatusTimestampMillis:'

node_modules/react-native-mparticle/ios/RNMParticle/RNMParticle.m:323:47: No visible @interface for 'MParticleUser' declares the selector 'identities'

node_modules/react-native-mparticle/ios/RNMParticle/RNMParticle.m:549:22: No visible @interface for 'MPIdentityApiRequest' declares the selector 'setIdentity:identityType:'

node_modules/react-native-mparticle/ios/RNMParticle/RNMParticle.m:546:37: Use of undeclared identifier 'MPIdentityDeviceApplicationStamp'

node_modules/react-native-mparticle/ios/RNMParticle/RNMParticle.m:546:75: Use of undeclared identifier 'MPIdentityOther'; did you mean 'MPUserIdentityOther'?

node_modules/react-native-mparticle/ios/RNMParticle/RNMParticle.m:548:13: Unknown type name 'MPIdentity'; did you mean 'MPIdentityApi'?

node_modules/react-native-mparticle/ios/RNMParticle/RNMParticle.m:548:24: Interface type cannot be statically allocated

node_modules/react-native-mparticle/ios/RNMParticle/RNMParticle.m:548:40: Use of undeclared identifier 'MPIdentity'

from react-native-mparticle.

BrandonStalnaker avatar BrandonStalnaker commented on June 23, 2024

Ahh that's cause the sample code I gave you for you the podspec is pointing to an older version of our sdk. Sorry! It should be
pod 'mParticle-Apple-SDK', '~> 8.2'

Change that and then call pod update. Then you should see it upgrade our framework to version 8.2 which is the latest. @j86hughes

from react-native-mparticle.

j86hughes avatar j86hughes commented on June 23, 2024

Okiedokie I've changed that line to point to version 8.2 and ran pod update 👍
Good news is I no longer have errors in my RNMParticle.m file
Bad news is I now have bunch of errors in my AppDelegate.m file where I've pasted the sample code in the didFinishLaunchingWithOptions function 😅

ios/myApp/AppDelegate.m:87:41: Use of undeclared identifier 'MParticleOptions'
ios/myApp/AppDelegate.m:91:36: Use of undeclared identifier 'MPIdentityApiRequest'
ios/myApp/AppDelegate.m:91:25: Use of undeclared identifier 'request'
ios/myApp/AppDelegate.m:92:3: Use of undeclared identifier 'request'
ios/myApp/AppDelegate.m:93:3: Use of undeclared identifier 'mParticleOptions'
ios/myApp/AppDelegate.m:93:38: Use of undeclared identifier 'request'
ios/myApp/AppDelegate.m:94:3: Use of undeclared identifier 'mParticleOptions'
ios/myApp/AppDelegate.m:94:41: Type specifier missing, defaults to 'int'
ios/myApp/AppDelegate.m:95:59: Use of undeclared identifier 'apiResult'
ios/myApp/AppDelegate.m:95:82: Use of undeclared identifier 'error'
ios/myApp/AppDelegate.m:97:3: Use of undeclared identifier 'mParticleOptions'
ios/myApp/AppDelegate.m:97:42: Use of undeclared identifier 'MPAttributionResult'
ios/myApp/AppDelegate.m:97:93: Unexpected interface name 'NSError': expected expression
Parse Issue Group
ios/myApp/AppDelegate.m:94:43: Type-id cannot have a name
ios/myApp/AppDelegate.m:94:63: Expected ')'
ios/myApp/AppDelegate.m:94:42: To match this '('
ios/myApp/AppDelegate.m:97:64: Expected expression

from react-native-mparticle.

j86hughes avatar j86hughes commented on June 23, 2024

My bad, turns out it was an unrelated issue caused by a missing closure in the AppDelegate.m file 😅
Everything is now working so I'm closing the issue. Thanks again 🙏

from react-native-mparticle.

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.