Closed nijakobius closed 1 year ago
Okay it must have something to do with the latest release (4.30.0) because when I run cordova plugin add com.adjust.sdk@4.29.1
, I also get a bunch of warnings, but afterwards I can build the project in XCode.
Installing "com.adjust.sdk" for android
(node:99164) [DEP0128] DeprecationWarning: Invalid 'main' field in '/Users/myname/Documents/Projekte/appname/App/appname/platforms/android/cordova/node_modules/objectorarray/package.json' of 'dist/index.js'. Please either fix that or report it to the module author
(Use `node --trace-deprecation ...` to show where the warning was created)
Subproject Path: CordovaLib
Subproject Path: app
Installing "com.adjust.sdk" for browser
(node:99164) [DEP0128] DeprecationWarning: Invalid 'main' field in '/Users/myname/Documents/Projekte/appname/App/appname/node_modules/objectorarray/package.json' of 'dist/index.js'. Please either fix that or report it to the module author
Installing "com.adjust.sdk" for ios
Adding com.adjust.sdk to package.json
config file undefined requested for changes not found at /Users/myname/Documents/Projekte/appname/App/appname/platforms/android/undefined, ignoring
config file undefined requested for changes not found at /Users/myname/Documents/Projekte/appname/App/appname/platforms/android/undefined, ignoring
config file undefined requested for changes not found at /Users/myname/Documents/Projekte/appname/App/appname/platforms/android/undefined, ignoring
config file /manifest requested for changes not found at /Users/myname/Documents/Projekte/appname/App/appname/platforms/android/manifest, ignoring
[Gradle Properties] Detected Gradle property "android.useAndroidX" with the value of "true", Cordova's recommended value is "false"
[Gradle Properties] Detected Gradle property "android.enableJetifier" with the value of "true", Cordova's recommended value is "false"
are there any updates? I have the same problem with ios build.
Plugins/com.adjust.sdk/AdjustCordovaDelegate.h:10:9: fatal error: 'Adjust.h' file not found
#import "Adjust.h"
Hi @avkruze and @nielsjakob,
We have tried reproducing the issue on our end, but it's working correctly here.
Could you share the sample project with us where this is reproducible so we can look into this further and assist you?
My Podfile has use_frameworks!
added from cordova-plugin-firebase-messaging.
It seems that the build will fail if use_frameworks!
is included.
I think my app needs #import <Adjust/Adjust.h>
, not #import "Adjust.h"
.
Hey @avkruze and @uzosocom (and @uzosocom thank you for identifying the reason for facing this error message).
We will try to address issue about error saying that Adjust.h
import can't be found when usage of frameworks is forced via Podfile
in our next SDK update.
Hey guys,
We have just released Cordova SDK v4.32.0 update where we tried to address this issue. If you can give it a shot and let us know if it fixed your issue, that'd be great. Thank you in advance.
In case the issue is still around even with latest version of SDK, please feel free to comment / reopen.
Hi, trying to install this is in my project via
cordova plugin add com.adjust.sdk
, with the following result:Afterwards,
com.adjust.sdk 4.30.0 "Adjust"
is shown in the list of plugins when runningcordova plugin
.However, when I try to build the app in XCode, it fails with the following error message:
The error is in
AdjustCordova.h
andAdjustCordovaDelegate.h
both on line 10#import "Adjust.h"
.I am using
Cordova CLI 11.0.0
andios 6.2.0
on a Intel MacBook withmacOS Monterrey 12.4
andXCode 13.4.1 (13F100)
.