Comments (5)
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.
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.
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.
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.
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)
- Can't build the app after upgrading mParticle-Apple-SDK to 8.13.0 HOT 3
- Unable install in expo HOT 15
- 'mParticle.h' file not found HOT 2
- [iOS] App won't build after upgrading to react-native 0.73 HOT 4
- Build Failure in React Native Due to Missing mParticle-Apple-SDK Header After Update HOT 1
- com.mparticle:android-core com.mparticle:android-core: compliance warning for Android HOT 2
- Compilation Error HOT 2
- Feature Request: Raise an event once at attribution is fetched at the native layers. HOT 4
- question: isLoggedIn flag. HOT 1
- Not able to find specification HOT 2
- Plugin uses deprecated part of the mParticle Android SDK
- Could not invoke MParticle.logEvent HOT 3
- After published 2.7.1 old versions have stopped being build HOT 12
- Question: Is autolinking supported? HOT 3
- Documentation needs more clarity around identification HOT 1
- Module uses old part of the mParticle Android SDK HOT 4
- mParticle -> Warning: Braze SDK initialized outside of mParticle kit
- Global Subscription States in Braze via mParticle React Native library
- Simulator not running on M1 MacBook? HOT 2
- Migrate to AndroidX HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-native-mparticle.