Git Product home page Git Product logo

tealium / cordova-plugin Goto Github PK

View Code? Open in Web Editor NEW
4.0 4.0 12.0 29.93 MB

Use of this software is subject to the terms and conditions of the license agreement contained in the file titled "LICENSE.txt". Please read the license before downloading or using any of the files contained in this repository. By downloading or using any of these files, you are agreeing to be bound by and comply with the license agreement. If you do not agree, do not download or use any of these files.

License: Other

CSS 4.07% HTML 7.86% JavaScript 15.96% Kotlin 38.73% Swift 33.37%

cordova-plugin's People

Contributors

craigrouse avatar enricoza avatar jalakoo avatar jameskeith avatar jonathanswong avatar tamayok avatar trister1997 avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

cordova-plugin's Issues

Plugin Does Not Work on iOS Device

Greetings,
We're attempting to implement this plugin for use on an Ionic v3 application. We've had no issue getting this to run on Android (both emulators and devices), and have had success getting this to run on iOS (but only simulators). The tealium account manager pointed us to this knowledge base.

My understanding is that we need the following packages for cordova builds:

  • tealium-cordova-plugin
  • cordova-node-xcode (needed for xcode to embed binaries in project)
  • cordova-plugin-tealium-deviceonly (? not in your repo or in the technical documentation)

For replication:

I've spun up a new cordova v3 app with nothing in it other than the tabs template and this plugin. I am able to initialize tealium (with real profile data) within the app.component on the deviceReady() callback. However, attemping to reference the API either by the typings package or the window object anywhere else will return the following error originating in the vendor script.

error:

[Error] ERROR
Error: Uncaught (in promise): TypeError: Object(__WEBPACK_IMPORTED_MODULE_0__ionic_native_core__["cordova"]) is not a function. (In 'Object(__WEBPACK_IMPORTED_MODULE_0__ionic_native_core__["cordova"])(this, "trackEvent", {}, arguments)', 'Object(__WEBPACK_IMPORTED_MODULE_0__ionic_native_core__["cordova"])' is an instance of Object) trackEvent@ionic://localhost/build/vendor.js:123299:156 HomePage@ionic://localhost/build/main.js:69:90 createClass@ionic://localhost/build/vendor.js:12806:28 createDirectiveInstance@ionic://localhost/build/vendor.js:12651:48 createViewNodes@ionic://localhost/build/vendor.js:14109:76 createRootView@ionic://localhost/build/vendor.js:13998:20 callWithDebugContext@ionic://localhost/build/vendor.js:15423:47 create@ionic://localhost/build/vendor.js:11603:60 _viewInit@ionic://localhost/build/vendor.js:51881:50 ionic://localhost/build/vendor.js:51694:32 onInvoke@ionic://localhost/build/vendor.js:5085:39 run@ionic://localhost/build/polyfills.js:3:10149 ionic://localhost/build/polyfills.js:3:20245 onInvokeTask@ionic://localhost/build/vendor.js:5076:43 runTask@ionic://localhost/build/polyfills.js:3:10844 o@ionic://localhost/build/polyfills.js:3:7901 promiseReactionJob@[native code]
	defaultErrorLogger (vendor.js:1774)
	handleError (vendor.js:1835)
	handleError (vendor.js:121855)
	next (vendor.js:5833:148)
	(anonymous function) (vendor.js:4667)
	__tryOrUnsub (vendor.js:35911)
	next (vendor.js:35858)
	_next (vendor.js:35798)
	next (vendor.js:35762)
	next (vendor.js:42327)
	emit (vendor.js:4647)
	run (polyfills.js:3:10150)
	onHandleError (vendor.js:5107)
	runGuarded (polyfills.js:3:10410)
	(anonymous function) (polyfills.js:3:21024)
	microtaskDrainDone (polyfills.js:3:21061)
	o (polyfills.js:3:8009)
	promiseReactionJob

app.component:

@Component({
  templateUrl: 'app.html'
})
export class MyApp {
  rootPage:any = HomePage;

  constructor(platform: Platform, statusBar: StatusBar, splashScreen: SplashScreen) {
    platform.ready().then(() => {
      // Okay, so the platform is ready and our plugins are available.
      // Here you can do any higher level native things you might need.
      statusBar.styleDefault();
      splashScreen.hide();
    })
    .then(() => {
      if (platform.is('cordova')) {
        const tealium = window['tealium'];
        tealium.init({
          account: 'our-account',
          profile: 'our-profile',
          environment: 'dev',
          isLifecycleEnabled: 'true',
          isCrashReporterEnabled: 'false',
          instance: 'main'
        });
        tealium.trackEvent({ tealium_event: 'test', ...{ test: 'testees' } }, 'main');
      };    
    });
  }
}

Basic page view call:

@Component({
  selector: 'page-home',
  templateUrl: 'home.html'
})
export class HomePage {

  constructor(public navCtrl: NavController) {
    const tealium = window['tealium'];
    Tealium.trackEvent({ tealium_event: 'test', ...{ test: 'testees' } }, 'main');
  }

}

Successful initialization call in xcode debug output:

2019-06-06 15:20:46.778503-0600 MyApp[3665:1634868] Tealium Cordova 1.1.2: Tealium: Tealium init successful!
2019-06-06 15:20:46.783667-0600 MyApp[3665:1634868] Tealium Cordova 1.1.2: Tealium call successful

package.json looks like:

{
  "name": "tealium-poc",
  "version": "0.0.1",
  "author": "Ionic Framework",
  "homepage": "http://ionicframework.com/",
  "private": true,
  "scripts": {
    "start": "ionic-app-scripts serve",
    "clean": "ionic-app-scripts clean",
    "build": "ionic-app-scripts build",
    "lint": "ionic-app-scripts lint"
  },
  "dependencies": {
    "@angular/animations": "5.2.11",
    "@angular/common": "5.2.11",
    "@angular/compiler": "5.2.11",
    "@angular/compiler-cli": "5.2.11",
    "@angular/core": "5.2.11",
    "@angular/forms": "5.2.11",
    "@angular/http": "5.2.11",
    "@angular/platform-browser": "5.2.11",
    "@angular/platform-browser-dynamic": "5.2.11",
    "@ionic-native/core": "~4.20.0",
    "@ionic-native/splash-screen": "~4.20.0",
    "@ionic-native/status-bar": "~4.20.0",
    "@ionic-native/tealium": "^5.7.0",
    "@ionic/storage": "2.2.0",
    "cordova": "^9.0.0",
    "cordova-cli": "^1.0.0",
    "cordova-ios": "5.0.1",
    "ionic-angular": "3.9.5",
    "ionicons": "3.0.0",
    "rxjs": "5.5.11",
    "sw-toolbox": "3.6.0",
    "tealium-cordova-plugin": "1.1.2",
    "xcode": "^2.0.0",
    "zone.js": "0.8.29"
  },
  "devDependencies": {
    "@ionic/app-scripts": "3.2.2",
    "cordova-plugin-device": "^2.0.2",
    "cordova-plugin-ionic-keyboard": "^2.1.3",
    "cordova-plugin-ionic-webview": "^4.0.1",
    "cordova-plugin-splashscreen": "^5.0.2",
    "cordova-plugin-statusbar": "^2.4.2",
    "cordova-plugin-whitelist": "^1.3.3",
    "typescript": "~2.6.2"
  },
  "description": "An Ionic project",
  "cordova": {
    "plugins": {
      "cordova-plugin-whitelist": {},
      "cordova-plugin-statusbar": {},
      "cordova-plugin-device": {},
      "cordova-plugin-splashscreen": {},
      "cordova-plugin-ionic-webview": {},
      "cordova-plugin-ionic-keyboard": {},
      "tealium-cordova-plugin": {}
    },
    "platforms": [
      "ios"
    ]
  }
}

Plugin not installing correctly on Android

Using Cordova 5.4.0 - When I install the plugin using the command 'cordova plugin add com.tealium.cordova.compact' the files appear to get copied over correctly (to the locations specified in the plugin.xml). Install works perfectly for IOS but Android doesn't compile any of the tealium plugin source and therefore when used in an Android project, any calls to Tealium produce a Fail, check syntax of tealium.init(String account, String profile, String target) or tealium.track(String type, Object data) in the console. In the Android debugger I see: 12-07 14:14:38.774: D/PluginManager(29854): exec() call to unknown plugin: TealiumPg

plugin breaks IOS build in ionic app

Hi team,
we recently added the Tealium plugin to our ionic2 project. For Android it just works fine, but when we run ionic build ios it quite soon stops with an error:
`

ionic-app-scripts build
...
[08:17:52] sass finished in 4.01 s
[08:17:52] build dev finished in 21.70 s
Embedded Frameworks In com.tealium.cordova.v5
Error: Could not parse project.pbxproj: SyntaxError: Expected "/* Begin ", "/* End ", """, or [A-Za-z0-9_.] but "/" found.`

Then in the xcode project file we noticed an irregular line in the PBXBuildFile section , that only appeared after the build command (not directly after ionic platform add ios)

Line #41: /* TealiumIOSLifecycleDevicesOnly.framework in Embed Frameworks com.tealium.cordova.v5 */ = {isa = PBXBuildFile; fileRef = 5DCC315BF5B04B44997D787F /* TealiumIOSLifecycleDevicesOnly.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; };

bildschirmfoto 2017-06-21 um 08 35 33

After removing the tealium plugin the ios build works again.

Quick help would be much appreciated, Thanks in advance!

ionic info:

Cordova CLI: 7.0.1
Ionic Framework Version: 2.0.0
Ionic CLI Version: 2.2.1
Ionic App Lib Version: 2.2.0
Ionic App Scripts Version: 1.0.0
ios-deploy version: 1.9.1
ios-sim version: 5.0.13
OS: OS X El Capitan
Node Version: v7.5.0
Xcode version: Xcode 8.2.1 Build version 8C1002

cordova plugins:
\<plugin name="com.tealium.cordova.v5" spec="~1.1.0" /> \<plugin name="cordova-plugin-console" spec="~1.0.5" /> \<plugin name="cordova-plugin-datepicker" spec="~0.9.3" /> \<plugin name="cordova-plugin-device" spec="1.1.4" /> \<plugin name="cordova-plugin-secure-storage" spec="^2.6.6" /> \<plugin name="cordova-plugin-splashscreen" spec="~4.0.1" /> \<plugin name="cordova-plugin-statusbar" spec="~2.2.1" /> \<plugin name="cordova-plugin-whitelist" spec="~1.3.1" /> \<plugin name="ionic-plugin-keyboard" spec="~2.2.1" />

cordova 7.0.1 ios hook problem

After I upgraded to Cordova 7.0.1, the build is breaking.
I am running tealium-cordova-deviceonly@^1.1.1

When I run

cordova build ios

I get

Error: Could not parse project.pbxproj: SyntaxError: Expected "/* Begin ", "/* End ", """, or [A-Za-z0-9_.] but "/" found.

Only by removing the platform, removing the plugin, and readding the platform, i can get it running again.

Once I reinstall the plugin, the problem occurs again.

After some digging, I found out that removing the add_embedded hook from the plugin, it builds nicely again

Return Promise from trackEvent() never resolves on iOS

Hi guys

I've found that the trackEvent() method from the tealium cordova plugin never resolves if it is run on iOS. The method is typed as a Promise but if I await on the tracking in my code the subsequent methods are never called because trackEvent() does not seem to resolve. For the moment I had to rewrite my code base to not wait for tealium events to complete or else my app breaks.

diamond operator is not supported in -source 1.6 when building in phonegap

I'm getting the following error while doing the phonegap build after integrating the plugin in android version. iOS complies fine. Please advise.

/project/src/org/apache/cordova/plugin/TealiumPg.java:121: error: diamond operator is not supported in -source 1.6
ArrayList moduleErrors = new ArrayList<>(3);
^
(use -source 7 or higher to enable diamond operator)

tealium.js privateConfig versioning needs updating

in tealium.js, the privateConfig being used for logging is still at 1.1.2, and needs to be updated to 1.1.3:

    privateConfig: {
        logLevel: null,
        severity : {
            INFO: 1,
            WARN: 2,
            ERR: 3
        },
        TAG: "Tealium Cordova 1.1.2: ",
        pluginVersion: "1.1.2"
    }

Apple flagging due to UIWebView References in the plugin

Hi
We have recently noticed that after installing the latest tealium plugin we see apple flagging us for the usage of UIWebView references.

ITMS-90809: Deprecated API Usage - App updates that use UIWebView will no longer be accepted as of December 2020. Instead, use WKWebView for improved security and reliability. Learn more (https://developer.apple.com/documentation/uikit/uiwebview).

we are using tealium-cordova-plugin v1.1.2

Could you please let us know if this can be corrected?

com.tealium.cordova.v5 doesn't exist in npm repository

The plugin id is com.tealium.cordova.v5 but it can't be restored from config.xml file:

Failed to restore plugin "com.tealium.cordova.v5" from config.xml. You might need to try adding it again. 
Error: Error: Registry returned 404 for GET on https://registry.npmjs.org/com.tealium.cordova.v5

Application Lifecycle Events (Android)

The Lifecycle tracking events (launch, wake, sleep) are currently inconsistent or not working at all on Android and marked as known issue.
Can you make sure this is resolved in the next release?

Android - TealiumPG - Class not found.

Using:
Cordova 5.2.0
Cordova Android 4.0.0
Android 5.1.1

Run:

cordova plugin add com.tealium.cordova.compact
cordova run android

Call:

tealium.init({
    account: 'account',
    profile: 'app-account',
    environment: 'dev'
});

Yields:

Fail, check syntax of tealium.init(String account, String profile, String target) or tealium.track(String type, Object data)

Through cordova.exec directly:

cordova.exec(
    function(msg) {
        console.log('success', msg);
    },
    function(msg) {
        console.log('failure', msg);
    },
    'TealiumPg',
    'init', [{
        account: 'account',
        profile: 'app-account',
        environment: 'dev',
    }]
);
VM135:7 failure Class not found

Unable to get tealium-cordova-pluing to work with a swift 4 targeted ionic app.

We have an ionic app whose swift target version is 4 (<preference name="UseSwiftLanguageVersion" value="4.0" />).

But the issue is our IOS build fails for both versions of tealium-cordova-plugin.

When we use the latest v1 i.e. 1.1.5 it uses objective c and it has pod dependency of TealiumIOS which seems not to work with our swift version it seems.

When we use the version from v2 i.e. anyone above 2.0.0. Its target swift version is 5. which is somehow converting out app's target swift version to be 5 and other plugins start to have compilation issues.

Do you have any tips or ideas on how we can get it to work with an ionic app that has its UseSwiftLanguageVersion set to 4?

Adding Tealium to embedded binaries breaks other linked frameworks

I've followed the instructions for installation. Without adding the embedded binaries I get errors about missing Tealium headers which makes sense. When I add the embedded binaries, I get errors about my other plugins - eg New Relic. Which makes no sense at all

Build failing on iOS

Hi Team,

I am not able to compile the Tealium Cordova plugin for ios. I am getting below error. Please check
CompileC build/HelloCordova.build/Debug-iphonesimulator/HelloCordova.build/Objects-normal/i386/tealium_int.o HelloCordova/Plugins/com.tealium.cordova.v5/tealium_int.m normal i386 objective-c com.apple.compilers.llvm.clang.1_0.compiler

cd /Users/administrator/Documents/**/******//Tealium/Tealium/platforms/ios

export LANG=en_US.US-ASCII

export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/Application"

/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x objective-c -arch i386 -fmessage-length=169 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -fcolor-diagnostics -std=c99 -fobjc-arc -fmodules -fmodules-prune-interval=86400 -fmodules-prune-after=345600 -Wno-trigraphs -fpascal-strings -O0 -Wno-missing-field-initializers -Wno-missing-prototypes -Wno-implicit-atomic-properties -Wno-receiver-is-weak -Wno-arc-repeated-use-of-weak -Wduplicate-method-match -Wno-missing-braces -Wparentheses -Wswitch -Wunused-function -Wno-unused-label -Wno-unused-parameter -Wunused-variable -Wunused-value -Wempty-body -Wuninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wconstant-conversion -Wint-conversion -Wbool-conversion -Wenum-conversion -Wno-shorten-64-to-32 -Wpointer-sign -Wno-newline-eof -Wno-selector -Wno-strict-selector-match -Wundeclared-selector -Wno-deprecated-implementations -DDEBUG=1 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.1.sdk -fexceptions -fasm-blocks -fstrict-aliasing -Wprotocol -Wdeprecated-declarations -g -fvisibility=hidden -Wno-sign-conversion -fobjc-abi-version=2 -fobjc-legacy-dispatch -mios-simulator-version-min=8.0 -iquote /Users/administrator/Documents/**/******//Tealium/Tealium/platforms/ios/build/HelloCordova.build/Debug-iphonesimulator/HelloCordova.build/HelloCordova-generated-files.hmap -I/Users/administrator/Documents/**/******//Tealium/Tealium/platforms/ios/build/HelloCordova.build/Debug-iphonesimulator/HelloCordova.build/HelloCordova-own-target-headers.hmap -I/Users/administrator/Documents/**/******//Tealium/Tealium/platforms/ios/build/HelloCordova.build/Debug-iphonesimulator/HelloCordova.build/HelloCordova-all-target-headers.hmap -iquote /Users/administrator/Documents/**/******//Tealium/Tealium/platforms/ios/build/HelloCordova.build/Debug-iphonesimulator/HelloCordova.build/HelloCordova-project-headers.hmap -I/Users/administrator/Documents/**/******//Tealium/Tealium/platforms/ios/build/emulator/include -I/Users/administrator/Documents/**/******//Tealium/Tealium/platforms/ios/build/emulator/usr/local/lib/include -I/Users/administrator/Documents/**/******//Tealium/Tealium/platforms/ios/build/UninstalledProducts/include -I/Users/administrator/Documents/**/******//Tealium/Tealium/platforms/ios/build/UninstalledProducts/iphonesimulator/include -I/Users/administrator/Documents/**/******//Tealium/Tealium/platforms/ios/build/emulator -I/Users/administrator/Documents/**/******//Tealium/Tealium/platforms/ios/build/HelloCordova.build/Debug-iphonesimulator/HelloCordova.build/DerivedSources/i386 -I/Users/administrator/Documents/**/******//Tealium/Tealium/platforms/ios/build/HelloCordova.build/Debug-iphonesimulator/HelloCordova.build/DerivedSources -F/Users/administrator/Documents/**/******//Tealium/Tealium/platforms/ios/build/emulator -FHelloCordova/Plugins/com.tealium.cordova.v5 -include /Users/administrator/Documents/**/******//Tealium/Tealium/platforms/ios/build/sharedpch/HelloCordova-Prefix-djjqrnzgmfbjdmarfywetcjspcix/HelloCordova-Prefix.pch -MMD -MT dependencies -MF /Users/administrator/Documents/**/******//Tealium/Tealium/platforms/ios/build/HelloCordova.build/Debug-iphonesimulator/HelloCordova.build/Objects-normal/i386/tealium_int.d --serialize-diagnostics /Users/administrator/Documents/**/******//Tealium/Tealium/platforms/ios/build/HelloCordova.build/Debug-iphonesimulator/HelloCordova.build/Objects-normal/i386/tealium_int.dia -c /Users/administrator/Documents/**/******//Tealium/Tealium/platforms/ios/HelloCordova/Plugins/com.tealium.cordova.v5/tealium_int.m -o /Users/administrator/Documents/**/******//Tealium/Tealium/platforms/ios/build/HelloCordova.build/Debug-iphonesimulator/HelloCordova.build/Objects-normal/i386/tealium_int.o

While building module 'TealiumIOS' imported from /Users/administrator/Documents//****//Tealium/Tealium/platforms/ios/HelloCordova/Plugins/com.tealium.cordova.v5/tealium_int.m:3:

In file included from :1:

In file included from HelloCordova/Plugins/com.tealium.cordova.v5/TealiumIOS.framework/Headers/TealiumIOS.h:18:

In file included from HelloCordova/Plugins/com.tealium.cordova.v5/TealiumIOS.framework/Headers/Tealium.h:11:

HelloCordova/Plugins/com.tealium.cordova.v5/TealiumIOS.framework/Headers/TEALConfiguration.h:20:48: error: expected ';' at end of declaration list

@Property (nonatomic, copy) NSString * _Nonnull accountName;

                                           ^

                                           ;

HelloCordova/Plugins/com.tealium.cordova.v5/TealiumIOS.framework/Headers/TEALConfiguration.h:20:49: warning: type specifier missing, defaults to 'int' [-Wimplicit-int]

@Property (nonatomic, copy) NSString * _Nonnull accountName;

                                            ^~~~~~~~~~~

HelloCordova/Plugins/com.tealium.cordova.v5/TealiumIOS.framework/Headers/TEALConfiguration.h:27:40: error: property has a previous declaration

@Property (nonatomic, copy) NSString * _Nonnull profileName;

                                   ^

HelloCordova/Plugins/com.tealium.cordova.v5/TealiumIOS.framework/Headers/TEALConfiguration.h:20:40: note: property declared here

@Property (nonatomic, copy) NSString * _Nonnull accountName;

                                   ^

HelloCordova/Plugins/com.tealium.cordova.v5/TealiumIOS.framework/Headers/TEALConfiguration.h:27:48: error: expected ';' at end of declaration list

@Property (nonatomic, copy) NSString * _Nonnull profileName;

                                           ^

                                           ;

HelloCordova/Plugins/com.tealium.cordova.v5/TealiumIOS.framework/Headers/TEALConfiguration.h:27:49: warning: type specifier missing, defaults to 'int' [-Wimplicit-int]

@Property (nonatomic, copy) NSString * _Nonnull profileName;

                                            ^~~~~~~~~~~

HelloCordova/Plugins/com.tealium.cordova.v5/TealiumIOS.framework/Headers/TEALConfiguration.h:34:40: error: property has a previous declaration

@Property (nonatomic, copy) NSString * _Nonnull environmentName;

                                   ^

HelloCordova/Plugins/com.tealium.cordova.v5/TealiumIOS.framework/Headers/TEALConfiguration.h:20:40: note: property declared here

@Property (nonatomic, copy) NSString * _Nonnull accountName;

                                   ^

HelloCordova/Plugins/com.tealium.cordova.v5/TealiumIOS.framework/Headers/TEALConfiguration.h:34:48: error: expected ';' at end of declaration list

@Property (nonatomic, copy) NSString * _Nonnull environmentName;

                                           ^

                                           ;

HelloCordova/Plugins/com.tealium.cordova.v5/TealiumIOS.framework/Headers/TEALConfiguration.h:34:49: warning: type specifier missing, defaults to 'int' [-Wimplicit-int]

@Property (nonatomic, copy) NSString * _Nonnull environmentName;

                                            ^~~~~~~~~~~~~~~

HelloCordova/Plugins/com.tealium.cordova.v5/TealiumIOS.framework/Headers/TEALConfiguration.h:40:43: error: expected ';' at end of declaration list

@Property (nonatomic) NSString * _Nullable overridePublishSettingsURL;

                                      ^

                                      ;

HelloCordova/Plugins/com.tealium.cordova.v5/TealiumIOS.framework/Headers/TEALConfiguration.h:40:44: warning: type specifier missing, defaults to 'int' [-Wimplicit-int]

@Property (nonatomic) NSString * _Nullable overridePublishSettingsURL;

                                       ^~~~~~~~~~~~~~~~~~~~~~~~~~

HelloCordova/Plugins/com.tealium.cordova.v5/TealiumIOS.framework/Headers/TEALConfiguration.h:45:34: error: property has a previous declaration

@Property (nonatomic) NSString * _Nullable overrideTagManagementURL;

                             ^

HelloCordova/Plugins/com.tealium.cordova.v5/TealiumIOS.framework/Headers/TEALConfiguration.h:40:34: note: property declared here

@Property (nonatomic) NSString * _Nullable overridePublishSettingsURL;

                             ^

HelloCordova/Plugins/com.tealium.cordova.v5/TealiumIOS.framework/Headers/TEALConfiguration.h:45:43: error: expected ';' at end of declaration list

@Property (nonatomic) NSString * _Nullable overrideTagManagementURL;

                                      ^

                                      ;

HelloCordova/Plugins/com.tealium.cordova.v5/TealiumIOS.framework/Headers/TEALConfiguration.h:45:44: warning: type specifier missing, defaults to 'int' [-Wimplicit-int]

@Property (nonatomic) NSString * _Nullable overrideTagManagementURL;

                                       ^~~~~~~~~~~~~~~~~~~~~~~~

HelloCordova/Plugins/com.tealium.cordova.v5/TealiumIOS.framework/Headers/TEALConfiguration.h:61:17: error: expected ')'

  • (instancetype _Nonnull) configurationWithAccount:(NSString * _Nonnull)accountName

            ^
    

HelloCordova/Plugins/com.tealium.cordova.v5/TealiumIOS.framework/Headers/TEALConfiguration.h:61:3: note: to match this '('

  • (instancetype _Nonnull) configurationWithAccount:(NSString * _Nonnull)accountName

    ^

HelloCordova/Plugins/com.tealium.cordova.v5/TealiumIOS.framework/Headers/TEALConfiguration.h:61:64: error: expected ')'

  • (instancetype _Nonnull) configurationWithAccount:(NSString * _Nonnull)accountName

                                                           ^
    

HelloCordova/Plugins/com.tealium.cordova.v5/TealiumIOS.framework/Headers/TEALConfiguration.h:61:52: note: to match this '('

  • (instancetype _Nonnull) configurationWithAccount:(NSString * _Nonnull)accountName

                                               ^
    

HelloCordova/Plugins/com.tealium.cordova.v5/TealiumIOS.framework/Headers/TEALConfiguration.h:62:65: error: expected ')'

                                        profile:(NSString * _Nonnull)profileName

                                                            ^

HelloCordova/Plugins/com.tealium.cordova.v5/TealiumIOS.framework/Headers/TEALConfiguration.h:62:53: note: to match this '('

                                        profile:(NSString * _Nonnull)profileName

                                                ^

HelloCordova/Plugins/com.tealium.cordova.v5/TealiumIOS.framework/Headers/TEALConfiguration.h:63:65: error: expected ')'

                                    environment:(NSString * _Nonnull)environmentName;

                                                            ^

HelloCordova/Plugins/com.tealium.cordova.v5/TealiumIOS.framework/Headers/TEALConfiguration.h:63:53: note: to match this '('

                                    environment:(NSString * _Nonnull)environmentName;

                                                ^

HelloCordova/Plugins/com.tealium.cordova.v5/TealiumIOS.framework/Headers/TEALConfiguration.h:72:52: error: expected ')'

  • (BOOL) isValidConfiguration:(TEALConfiguration * _Nonnull)configuration;

                                               ^
    

HelloCordova/Plugins/com.tealium.cordova.v5/TealiumIOS.framework/Headers/TEALConfiguration.h:72:31: note: to match this '('

  • (BOOL) isValidConfiguration:(TEALConfiguration * _Nonnull)configuration;

                          ^
    

HelloCordova/Plugins/com.tealium.cordova.v5/TealiumIOS.framework/Headers/TEALConfiguration.h:79:15: error: expected ')'

  • (NSString * _Nonnull)instanceID;

          ^
    

HelloCordova/Plugins/com.tealium.cordova.v5/TealiumIOS.framework/Headers/TEALConfiguration.h:79:3: note: to match this '('

  • (NSString * _Nonnull)instanceID;

    ^

HelloCordova/Plugins/com.tealium.cordova.v5/TealiumIOS.framework/Headers/TEALConfiguration.h:20:49: error: cannot declare variable inside @interface or @protocol

@Property (nonatomic, copy) NSString * _Nonnull accountName;

                                            ^

HelloCordova/Plugins/com.tealium.cordova.v5/TealiumIOS.framework/Headers/TEALConfiguration.h:27:49: error: cannot declare variable inside @interface or @protocol

@Property (nonatomic, copy) NSString * _Nonnull profileName;

                                            ^

HelloCordova/Plugins/com.tealium.cordova.v5/TealiumIOS.framework/Headers/TEALConfiguration.h:34:49: error: cannot declare variable inside @interface or @protocol

@Property (nonatomic, copy) NSString * _Nonnull environmentName;

                                            ^

HelloCordova/Plugins/com.tealium.cordova.v5/TealiumIOS.framework/Headers/TEALConfiguration.h:40:44: error: cannot declare variable inside @interface or @protocol

@Property (nonatomic) NSString * _Nullable overridePublishSettingsURL;

                                       ^

HelloCordova/Plugins/com.tealium.cordova.v5/TealiumIOS.framework/Headers/TEALConfiguration.h:45:44: error: cannot declare variable inside @interface or @protocol

@Property (nonatomic) NSString * _Nullable overrideTagManagementURL;

                                       ^

fatal error: too many errors emitted, stopping now [-ferror-limit=]

5 warnings and 20 errors generated.

/Users/administrator/Documents//****//Tealium/Tealium/platforms/ios/HelloCordova/Plugins/com.tealium.cordova.v5/tealium_int.m:3:9: fatal error: could not

  build module 'TealiumIOS'

@import TealiumIOS;


5 warnings and 21 errors generated.


** BUILD FAILED **



The following build commands failed:

CompileC build/HelloCordova.build/Debug-iphonesimulator/HelloCordova.build/Objects-normal/i386/tealium_int.o HelloCordova/Plugins/com.tealium.cordova.v5/tealium_int.m normal i386 objective-c com.apple.compilers.llvm.clang.1_0.compiler

(1 failure)

ERROR building one of the platforms: Error code 65 for command: xcodebuild with args: -xcconfig,/Users/administrator/Documents/**/******//Tealium/Tealium/platforms/ios/cordova/build-debug.xcconfig,-project,HelloCordova.xcodeproj,ARCHS=i386,-target,HelloCordova,-configuration,Debug,-sdk,iphonesimulator,build,VALID_ARCHS=i386,CONFIGURATION_BUILD_DIR=/Users/administrator/Documents/**/******//Tealium/Tealium/platforms/ios/build/emulator,SHARED_PRECOMPS_DIR=/Users/administrator/Documents/**/******//Tealium/Tealium/platforms/ios/build/sharedpch

You may not have the required environment or OS to build this project

Error: Error code 65 for command: xcodebuild with args: -xcconfig,/Users/administrator/Documents/**/******//Tealium/Tealium/platforms/ios/cordova/build-debug.xcconfig,-project,HelloCordova.xcodeproj,ARCHS=i386,-target,HelloCordova,-configuration,Debug,-sdk,iphonesimulator,build,VALID_ARCHS=i386,CONFIGURATION_BUILD_DIR=/Users/administrator/Documents/**/******//Tealium/Tealium/platforms/ios/build/emulator,SHARED_PRECOMPS_DIR=/Users/administrator/Documents/**/******//Tealium/Tealium/platforms/ios/build/sharedpch

The plugin only works with cocoapods 1.3.1 (exact)

Using the last version of cocoapods the plugin doesn't install:

> cordova plugin add tealium-cordova-plugin
Installing "tealium-cordova-plugin" for ios
Failed to install 'tealium-cordova-plugin': Error: pod: Command failed with exit code 31
    at ChildProcess.whenDone (/Users/desarollo/Documents/Projects/.../platforms/ios/cordova/node_modules/cordova-common/src/superspawn.js:169:23)
    ...
(node:70936) UnhandledPromiseRejectionWarning: Error: pod: Command failed with exit code 31
    at ChildProcess.whenDone (/Users/desarollo/Documents/Projects/.../platforms/ios/cordova/node_modules/cordova-common/src/superspawn.js:169:23)
    ...
(node:70936) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:70936) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

So I had to install cocoapods 1.3.1, exact that version:

sudo gem install -n /usr/local/bin cocoapods -v 1.3.1
sudo gem uninstall cocoapods  #To uninstall the other version installed
pod repo update
pod --version # Check it is 1.3.1

lifeCycle doesnt work although it's set to true

I init tealium with this configuration but I the lifecycle doest work and
although I set it true, I didnt get any error.

TEALIUM_CONFIG: { account: "xxxxx", profile: "it-xxxx", environment: "dev", // usually "dev", "qa" or "prod" isLifecycleEnabled: "true", // pass "false" to disable lifecycle tracking isCrashReporterEnabled: "true", // pass "true" to enable crash reporter (Android only) instance: "tealium", // an arbitrary instance name. use the same instance name for all subsequent API calls, logLevel: "tealium.logLevels.DEV" }

Remote commands stop working after reloading of the web view

Hello,

Thank you for this plugin. Unfortunately we have faced such a challenge that TagBridge remote commands cannot be restored after reloading the web view. Once the app is started we register some remote commands on deviceready. At that moment everything works fine, and TagBridge commands execute appropriately. But once the document in the web view is reloaded (e.g. via location.reload()), the remote commands stop working… After reloading the web view, the deviceready event is triggered again, so we invoke the tealium.addRemoteCommand() method again, but the plugin does not allow to register a callback for a command which was already added previously. If we relaunch the entire app then the remote commands start working again (till the next reload of the web view document).

Could you please direct us in solving this issue? We forked the plugin and made small modifications which allow re-assigning callbacks for remote commands (even if they were already registered earlier). It would be nice though if we could continue using the official plugin, not the forked version.

Is there another solution to our problem? Or could this be fixed in the upcoming release? Thanks!

Crash on App Initialization after Xcode 15 Update with Tealium Cordova Plugin

I recently updated my Xcode to version 15, and since then, my Ionic application has been experiencing a critical issue on startup (real device only). The app crashes during the initialization of the Tealium Cordova plugin. This was not an issue prior to the Xcode update.

Details:

Platform: iOS - 16.3.1, 16.7.2, (I didn't test others in a real device)
Framework: Ionic
Xcode Version: 15
Plugin: Tealium Cordova Plugin

Problem Description:

Upon launching the app, it crashes during the Tealium Cordova plugin initialization. I have not made any significant code changes related to Tealium in my app, and this issue only started occurring after the Xcode 15 update.

Steps to Reproduce:

Update Xcode to version 15.
Build and run an Ionic app using the Tealium Cordova plugin.
The app crashes during the Tealium initialization phase.

Expected Outcome:

The app should initialize and run without any crashes, as it did before the Xcode update.

Additional Information:

I saw some updates regarding Tealium crashing on XCode 15, however, I didn't see any update related to it for the Tealium Cordova Plugin.

What I've Tried:

I've attempted to clean and rebuild the project.
I've tried downgrading the Xcode version, which temporarily resolved the issue, but it's not a viable long-term solution.

Conclusion:

I'm seeking help to understand and resolve this issue as it's blocking the regular operation of my Ionic application. If anyone has encountered a similar problem or can provide guidance on how to address it, I would greatly appreciate your assistance.

Thank you in advance for your help!

errorCallback not called if Tealium calls fail or Tealium is not configured

Based on the TealiumPg.java code, the error is logged on the Java side, but the successCallback is still called:

else if(action.equals("track")){
            track(arguments, callbackContext);
            callbackContext.success();
            return true;
}

Example is when track/view is called without calling init hasn't taken place.

This issue is to improve the error handling a little to call
callbackContext.error(...)
when this happens.

The plugin does not install in iOS if build.json file does not exists

But it works if build.json exists (and cocoapods is exact 1.3.1).

Discovered plugin "tealium-cordova-plugin" in config.xml. Adding it to the project

Installing "tealium-cordova-plugin" for ios

     Cloning into '/var/folders/t3/srwz6hk56q7c42ynw4vn9xfm0000gp/T/d20180425-72222-rdicg5'...

     Note: checking out '0f23cbc9298cfa608ef92c2361115299052a78eb'.
     
     You are in 'detached HEAD' state. You can look around, make experimental
     changes and commit them, and you can discard any commits you make in this
     state without impacting any branches by performing another checkout.
     
     If you want to create a new branch to retain commits you create, you may
     do so (now or later) by using -b with the checkout command again. Example:
     
       git checkout -b <new-branch-name>
 
     Cloning into '/var/folders/t3/srwz6hk56q7c42ynw4vn9xfm0000gp/T/d20180425-72222-w3vbxs'...

     Note: checking out '0f23cbc9298cfa608ef92c2361115299052a78eb'.
     

     You are in 'detached HEAD' state. You can look around, make experimental
     changes and commit them, and you can discard any commits you make in this
     state without impacting any branches by performing another checkout.
     
     If you want to create a new branch to retain commits you create, you may
     do so (now or later) by using -b with the checkout command again. Example:
     
       git checkout -b <new-branch-name>

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

[!] The `XXX [Release]` target overrides the `LD_RUNPATH_SEARCH_PATHS` build setting defined in `Pods/Target Support Files/Pods-XXX/Pods-XXX.release.xcconfig'. This can lead to problems with the CocoaPods installation

Adding tealium-cordova-plugin to package.json

Saved plugin info for "tealium-cordova-plugin" to config.xml

(node:72064) UnhandledPromiseRejectionWarning: Error: ENOENT: no such file or directory, open 'build.json'
    ...
(node:72064) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:72064) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

Update Gradle source to support [email protected]

The new cordova-android version (https://www.npmjs.com/package/cordova-android) uses [email protected] which doesn't support insecure sources.
Using insecure protocols with repositories, without explicit opt-in, is unsupported. Switch Maven repository 'maven4(http://maven.tealiumiq.com/android/releases/)' to redirect to a secure protocol (like HTTPS) or allow insecure protocols.

Could the TealiumIQ-Source in https://github.com/Tealium/cordova-plugin/blob/master/Tealium/src/android/tealium.gradle be updated to HTTPS?

trackEvent() with property tealium_event and value 'form_modify' does not work

Hi there

I just had a long debugging session where I fount out, that the method trackEvent of the cordova tealium plugin does not submit a request to tealium if the dataObject contains the property tealium_event with the value form_modify.

The exact same code does submit a request as soon as I rename the property from form_modify to something else.

This looks like a bug or a reserved value, which in itself would be a bug as well, because the trackEvent() method does accept any object as dataObject.

cordova plguin version from package-lock.json:

"tealium-cordova-plugin": {
  "version": "1.1.3"
},

java.lang.NullPointerException

Hi Team,

The cordova tealium plugin is failing in our production app and that is causing the application crash. Could you please look into the below logs and let us know what could be the issue

java.lang.NullPointerException: Attempt to invoke interface method 'int java.util.List.size()' on a null object reference
at com.tealium.library.c$1.run(Unknown Source)
at android.os.Handler.handleCallback(Handler.java:739)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:168)
at android.app.ActivityThread.main(ActivityThread.java:5845)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:797)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:687)

Regards,
Ashvin

App crashes on Android device using Tealium AdIdentifier Plugin

Following the install instructions on https://docs.tealium.com/platforms/cordova/install/ and https://docs.tealium.com/platforms/cordova/module-adid/ my app crashes on startup.

Error message is:

com.tealium.adidentifier.AdIdentifier$1.run

java.lang.ClassNotFoundException: Didn't find class 
"com.google.android.gms.ads.identifier.AdvertisingIdClient" on path: 
DexPathList[[zip file "/system/framework/org.apache.http.legacy.boot.jar", zip file 
"/data/app/tv.talpa.vi.nld.test-
2s3C4hjESlp1c4kXXrJEoA==/base.apk"],nativeLibraryDirectories=
[/data/app/tv.talpa.vi.nld.test-2s3C4hjESlp1c4kXXrJEoA==/lib/arm64, /system/lib64, 
/vendor/lib64]]

Using Cordova Android 8.0.0.

Any idea what is going wrong here?

Tealium fails to initialize in Android

I filled out the issue a couple of days ago with the Android side not building correctly. I Just tried the update tonight and I still see the same thing. I even verified that the version in the tealium plugin.xml says version 0.9.3. I removed the platform folder and plugins folder altogether and re-added everything just to be safe and still the same error.

Cant use this plugin with build.phonegap.com for ios

Hi Team,

I am not able to use this plugin to create the application build using build.phonegap.com. That site doesn't provide manually addition of TealiumIOS libraries in embedded bianries which is causing the build fail issue.

We we cant just put them in linked libraries and make it work ?

Regards,
Ashvin

iOS application is crashing with Tealium cordova plugin

Hi
We ahve added tealium plugin in our cordova application, but application is crashing on IOS while launching. we are getting following error
Date/Time: 2016-07-07 11:23:16.16 -0500
Launch Time: 2016-07-07 11:23:15.15 -0500
OS Version: iOS 9.3.2 (13F69)
Report Version: 105

Exception Type: EXC_BREAKPOINT (SIGTRAP)
Exception Codes: 0x0000000000000001, 0x00000000e7ffdefe
Triggered by Thread: 0

Filtered syslog:
None found

Dyld Error Message:
Dyld Message: Library not loaded: @rpath/TealiumIOS.framework/TealiumIOS
Referenced from: /var/containers/Bundle/Application/41C3C081-2D52-4B70-A27D-0FEAA6F968B1/ .app/
Reason: no suitable image found. Did find:
/private/var/containers/Bundle/Application/41C3C081-2D52-4B70-A27D-0FEAA6F968B1/ .app/Frameworks/TealiumIOS.framework/TealiumIOS: mmap() errno=1 validating first page of '/private/var/containers/Bundle/Application/41C3C081-2D52-4B70-A27D-0FEAA6F968B1/ .app/Frameworks/TealiumIOS.framework/TealiumIOS'
Dyld Version: 390.7

Binary Images:
0xf8000 - 0x143fff armv7 <319ddeac271f37f5a6904fc91dc2eba8> /var/containers/Bundle/Application/41C3C081-2D52-4B70-A27D-0FEAA6F968B1/ .app/
0x1fe4f000 - 0x1fe76fff dyld armv7s /usr/lib/dyld

Note: we have added TealiumIOS.framework/ into external libraries as well

iOS permission priming for tracking

Hi there

With iOS 14.5 the user is required to be shown a permission priming dialog for tracking data. See https://developer.apple.com/app-store/app-privacy-details/#user-tracking

This means that the cordova plugin should be able to present that dialog on request and disable tracking data if the user declines it. We can not submit our app to the store at the moment because apple rejected our request without showing this dialog. Is there a new version / fix planned?

Error when import Tealium as provider

I'trying to use the plugin wrapper for ionic 3, released here :
[https://ionicframework.com/docs/native/tealium/]

file : app.module.ts

import {Tealium} from '@ionic-native/tealium';

@NgModule({ declarations: [ MyApp ], imports: [ BrowserModule, IonicModule.forRoot(MyApp) ], bootstrap: [IonicApp], entryComponents: [ MyApp, ], providers: [ StatusBar, SplashScreen, CurrencyPipe, {provide: ErrorHandler, useClass: IonicErrorHandler}, Tealium ] })

When I Import it to ngModule, i got the error:

Error: Invalid provider for the NgModule 'AppModule' - only instances of Provider and Type are allowed, got: [StatusBar, SplashScreen, CurrencyPipe, [object Object], ComponentServiceProvider, HttpClient, File, FileTransfer, FileTransferObject, SQLite, AppTreeProvider, CreditServiceProvider, JsonProvider, DownloadModuleProvider, AssetServiceProvider, DownloadAssetServiceProvider, SqlServiceProvider, ?[object Object]?] at syntaxError (http://localhost:8100/build/vendor.js:72375:34) at http://localhost:8100/build/vendor.js:87534:40 at Array.forEach (<anonymous>) at CompileMetadataResolver._getProvidersMetadata (http://localhost:8100/build/vendor.js:87502:19) at CompileMetadataResolver.getNgModuleMetadata (http://localhost:8100/build/vendor.js:87070:50) at JitCompiler._loadModules (http://localhost:8100/build/vendor.js:105451:87) at JitCompiler._compileModuleAndComponents (http://localhost:8100/build/vendor.js:105412:36) at JitCompiler.compileModuleAsync (http://localhost:8100/build/vendor.js:105328:37) at CompilerImpl.compileModuleAsync (http://localhost:8100/build/vendor.js:142265:49) at PlatformRef.bootstrapModule (http://localhost:8100/build/vendor.js:5799:25)

Any suggest ? Thanks

Issues with DeviceOnly build (v.1.0.2 and v.1.1.0)

I have manually downloaded the release zip for 1.0.2 and try to install the DeviceOnly version of the plugin. It fails when installing for android, because plugin.xml references two files that have been updated

<platform name="android">
        <config-file target="config.xml" parent="/*">
            <feature name="TealiumPg">
                <param name="android-package" value="org.apache.cordova.plugin.TealiumPg"/>
            </feature>
        </config-file>
        <framework src="src/android/tealium.gradle" custom="true" type="gradleReference" />

        <resource-file src="src/android/tealium-5.0.2.aar" target="src/android/tealium-5.0.2.aar" />
        <resource-file src="src/android/tealium.lifecycle-5.0.0.aar" target="src/android/tealium.lifecycle-5.0.0.aar" />
		<source-file src="src/android/TealiumPg.java" target-dir="src/org/apache/cordova/plugin" />
     </platform>

Both the .aar files have been updated to 5.0.4, but the references to them have not.

I can see that the reference are updated in a later commit 5dd127f#diff-37dabb1b92dc7c1c5e39fbe13e22db10 that correctly updates the references to the files incluced in the android/src folder.

Because of this, I am not sure what version to use.

I am having issues using the newest version and am stuck with 1.0.2, but I am not sure how to trust the 1.0.2 release. Should I manually hack the files and install my hacked version, or should I checkout a specific commit, to get a working 1.0.2 ?

TealiumPg addRemoteCommand Crashed

Hi,
I am using tealium plugin in my iOS hybrid app. App frequently crashed due to -[TealiumPg addRemoteCommand:]_block_invoke. The exact line of crash is _tagBridgeCallbackIds[remoteCommandName] = command.callbackId;
Can you please reply back, how to solve this issue.
Thanks,

Build failing on iOS

Hi Team,

This build is failing when I am trying to build it. Please check the logs below

CompileC build/HelloCordova.build/Debug-iphonesimulator/HelloCordova.build/Objects-normal/i386/tealium_int.o HelloCordova/Plugins/com.tealium.cordova.v5/tealium_int.m normal i386 objective-c com.apple.compilers.llvm.clang.1_0.compiler
cd /Users/administrator/Documents//ConnectedCar/Tealium/Tealium/platforms/ios
export LANG=en_US.US-ASCII
export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/Application"
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x objective-c -arch i386 -fmessage-length=169 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -fcolor-diagnostics -std=c99 -fobjc-arc -fmodules -fmodules-prune-interval=86400 -fmodules-prune-after=345600 -Wno-trigraphs -fpascal-strings -O0 -Wno-missing-field-initializers -Wno-missing-prototypes -Wno-implicit-atomic-properties -Wno-receiver-is-weak -Wno-arc-repeated-use-of-weak -Wduplicate-method-match -Wno-missing-braces -Wparentheses -Wswitch -Wunused-function -Wno-unused-label -Wno-unused-parameter -Wunused-variable -Wunused-value -Wempty-body -Wuninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wconstant-conversion -Wint-conversion -Wbool-conversion -Wenum-conversion -Wno-shorten-64-to-32 -Wpointer-sign -Wno-newline-eof -Wno-selector -Wno-strict-selector-match -Wundeclared-selector -Wno-deprecated-implementations -DDEBUG=1 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.1.sdk -fexceptions -fasm-blocks -fstrict-aliasing -Wprotocol -Wdeprecated-declarations -g -fvisibility=hidden -Wno-sign-conversion -fobjc-abi-version=2 -fobjc-legacy-dispatch -mios-simulator-version-min=8.0 -iquote /Users/administrator/Documents/
/ConnectedCar/Tealium/Tealium/platforms/ios/build/HelloCordova.build/Debug-iphonesimulator/HelloCordova.build/HelloCordova-generated-files.hmap -I/Users/administrator/Documents//ConnectedCar/Tealium/Tealium/platforms/ios/build/HelloCordova.build/Debug-iphonesimulator/HelloCordova.build/HelloCordova-own-target-headers.hmap -I/Users/administrator/Documents//ConnectedCar/Tealium/Tealium/platforms/ios/build/HelloCordova.build/Debug-iphonesimulator/HelloCordova.build/HelloCordova-all-target-headers.hmap -iquote /Users/administrator/Documents//ConnectedCar/Tealium/Tealium/platforms/ios/build/HelloCordova.build/Debug-iphonesimulator/HelloCordova.build/HelloCordova-project-headers.hmap -I/Users/administrator/Documents//ConnectedCar/Tealium/Tealium/platforms/ios/build/emulator/include -I/Users/administrator/Documents//ConnectedCar/Tealium/Tealium/platforms/ios/build/emulator/usr/local/lib/include -I/Users/administrator/Documents//ConnectedCar/Tealium/Tealium/platforms/ios/build/UninstalledProducts/include -I/Users/administrator/Documents//ConnectedCar/Tealium/Tealium/platforms/ios/build/UninstalledProducts/iphonesimulator/include -I/Users/administrator/Documents//ConnectedCar/Tealium/Tealium/platforms/ios/build/emulator -I/Users/administrator/Documents//ConnectedCar/Tealium/Tealium/platforms/ios/build/HelloCordova.build/Debug-iphonesimulator/HelloCordova.build/DerivedSources/i386 -I/Users/administrator/Documents//ConnectedCar/Tealium/Tealium/platforms/ios/build/HelloCordova.build/Debug-iphonesimulator/HelloCordova.build/DerivedSources -F/Users/administrator/Documents//ConnectedCar/Tealium/Tealium/platforms/ios/build/emulator -FHelloCordova/Plugins/com.tealium.cordova.v5 -include /Users/administrator/Documents//ConnectedCar/Tealium/Tealium/platforms/ios/build/sharedpch/HelloCordova-Prefix-djjqrnzgmfbjdmarfywetcjspcix/HelloCordova-Prefix.pch -MMD -MT dependencies -MF /Users/administrator/Documents/_/Tealium/Tealium/platforms/ios/build/HelloCordova.build/Debug-iphonesimulator/HelloCordova.build/Objects-normal/i386/tealium_int.d --serialize-diagnostics /Users/administrator/Documents/**/Tealium/Tealium/platforms/ios/build/HelloCordova.build/Debug-iphonesimulator/HelloCordova.build/Objects-normal/i386/tealium_int.dia -c /Users/administrator/Documents/_/Tealium/Tealium/platforms/ios/HelloCordova/Plugins/com.tealium.cordova.v5/tealium_int.m -o /Users/administrator/Documents**Tealium/Tealium/platforms/ios/build/HelloCordova.build/Debug-iphonesimulator/HelloCordova.build/Objects-normal/i386/tealium_int.o
While building module 'TealiumIOS' imported from /Users/administrator/Documents/
****/Tealium/Tealium/platforms/ios/HelloCordova/Plugins/com.tealium.cordova.v5/tealium_int.m:3:
In file included from :1:
In file included from HelloCordova/Plugins/com.tealium.cordova.v5/TealiumIOS.framework/Headers/TealiumIOS.h:18:
In file included from HelloCordova/Plugins/com.tealium.cordova.v5/TealiumIOS.framework/Headers/Tealium.h:11:
HelloCordova/Plugins/com.tealium.cordova.v5/TealiumIOS.framework/Headers/TEALConfiguration.h:20:48: error: expected ';' at end of declaration list
@Property (nonatomic, copy) NSString * _Nonnull accountName;
^
;
HelloCordova/Plugins/com.tealium.cordova.v5/TealiumIOS.framework/Headers/TEALConfiguration.h:20:49: warning: type specifier missing, defaults to 'int' [-Wimplicit-int]
@Property (nonatomic, copy) NSString * _Nonnull accountName;
^~~~~~~~~~~
HelloCordova/Plugins/com.tealium.cordova.v5/TealiumIOS.framework/Headers/TEALConfiguration.h:27:40: error: property has a previous declaration
@Property (nonatomic, copy) NSString * _Nonnull profileName;
^
HelloCordova/Plugins/com.tealium.cordova.v5/TealiumIOS.framework/Headers/TEALConfiguration.h:20:40: note: property declared here
@Property (nonatomic, copy) NSString * _Nonnull accountName;
^
HelloCordova/Plugins/com.tealium.cordova.v5/TealiumIOS.framework/Headers/TEALConfiguration.h:27:48: error: expected ';' at end of declaration list
@Property (nonatomic, copy) NSString * _Nonnull profileName;
^
;
HelloCordova/Plugins/com.tealium.cordova.v5/TealiumIOS.framework/Headers/TEALConfiguration.h:27:49: warning: type specifier missing, defaults to 'int' [-Wimplicit-int]
@Property (nonatomic, copy) NSString * _Nonnull profileName;
^~~~~~~~~~~
HelloCordova/Plugins/com.tealium.cordova.v5/TealiumIOS.framework/Headers/TEALConfiguration.h:34:40: error: property has a previous declaration
@Property (nonatomic, copy) NSString * _Nonnull environmentName;
^
HelloCordova/Plugins/com.tealium.cordova.v5/TealiumIOS.framework/Headers/TEALConfiguration.h:20:40: note: property declared here
@Property (nonatomic, copy) NSString * _Nonnull accountName;
^
HelloCordova/Plugins/com.tealium.cordova.v5/TealiumIOS.framework/Headers/TEALConfiguration.h:34:48: error: expected ';' at end of declaration list
@Property (nonatomic, copy) NSString * _Nonnull environmentName;
^
;
HelloCordova/Plugins/com.tealium.cordova.v5/TealiumIOS.framework/Headers/TEALConfiguration.h:34:49: warning: type specifier missing, defaults to 'int' [-Wimplicit-int]
@Property (nonatomic, copy) NSString * _Nonnull environmentName;
^~~~~~~~~~~~~~~
HelloCordova/Plugins/com.tealium.cordova.v5/TealiumIOS.framework/Headers/TEALConfiguration.h:40:43: error: expected ';' at end of declaration list
@Property (nonatomic) NSString * _Nullable overridePublishSettingsURL;
^
;
HelloCordova/Plugins/com.tealium.cordova.v5/TealiumIOS.framework/Headers/TEALConfiguration.h:40:44: warning: type specifier missing, defaults to 'int' [-Wimplicit-int]
@Property (nonatomic) NSString * _Nullable overridePublishSettingsURL;
^~~~~~~~~~~~~~~~~~~~~~~~~~
HelloCordova/Plugins/com.tealium.cordova.v5/TealiumIOS.framework/Headers/TEALConfiguration.h:45:34: error: property has a previous declaration
@Property (nonatomic) NSString * _Nullable overrideTagManagementURL;
^
HelloCordova/Plugins/com.tealium.cordova.v5/TealiumIOS.framework/Headers/TEALConfiguration.h:40:34: note: property declared here
@Property (nonatomic) NSString * _Nullable overridePublishSettingsURL;
^
HelloCordova/Plugins/com.tealium.cordova.v5/TealiumIOS.framework/Headers/TEALConfiguration.h:45:43: error: expected ';' at end of declaration list
@Property (nonatomic) NSString * _Nullable overrideTagManagementURL;
^
;
HelloCordova/Plugins/com.tealium.cordova.v5/TealiumIOS.framework/Headers/TEALConfiguration.h:45:44: warning: type specifier missing, defaults to 'int' [-Wimplicit-int]
@Property (nonatomic) NSString * _Nullable overrideTagManagementURL;
^~~~~~~~~~~~~~~~~~~~~~~~
HelloCordova/Plugins/com.tealium.cordova.v5/TealiumIOS.framework/Headers/TEALConfiguration.h:61:17: error: expected ')'

  • (instancetype _Nonnull) configurationWithAccount:(NSString * _Nonnull)accountName
    ^
    HelloCordova/Plugins/com.tealium.cordova.v5/TealiumIOS.framework/Headers/TEALConfiguration.h:61:3: note: to match this '('

  • (instancetype _Nonnull) configurationWithAccount:(NSString * _Nonnull)accountName
    ^
    HelloCordova/Plugins/com.tealium.cordova.v5/TealiumIOS.framework/Headers/TEALConfiguration.h:61:64: error: expected ')'

  • (instancetype _Nonnull) configurationWithAccount:(NSString * _Nonnull)accountName
    ^
    HelloCordova/Plugins/com.tealium.cordova.v5/TealiumIOS.framework/Headers/TEALConfiguration.h:61:52: note: to match this '('

  • (instancetype _Nonnull) configurationWithAccount:(NSString * _Nonnull)accountName
    ^
    HelloCordova/Plugins/com.tealium.cordova.v5/TealiumIOS.framework/Headers/TEALConfiguration.h:62:65: error: expected ')'
    profile:(NSString * _Nonnull)profileName
    ^
    HelloCordova/Plugins/com.tealium.cordova.v5/TealiumIOS.framework/Headers/TEALConfiguration.h:62:53: note: to match this '('
    profile:(NSString * _Nonnull)profileName
    ^
    HelloCordova/Plugins/com.tealium.cordova.v5/TealiumIOS.framework/Headers/TEALConfiguration.h:63:65: error: expected ')'
    environment:(NSString * _Nonnull)environmentName;
    ^
    HelloCordova/Plugins/com.tealium.cordova.v5/TealiumIOS.framework/Headers/TEALConfiguration.h:63:53: note: to match this '('
    environment:(NSString * _Nonnull)environmentName;
    ^
    HelloCordova/Plugins/com.tealium.cordova.v5/TealiumIOS.framework/Headers/TEALConfiguration.h:72:52: error: expected ')'

  • (BOOL) isValidConfiguration:(TEALConfiguration * _Nonnull)configuration;
    ^
    HelloCordova/Plugins/com.tealium.cordova.v5/TealiumIOS.framework/Headers/TEALConfiguration.h:72:31: note: to match this '('

  • (BOOL) isValidConfiguration:(TEALConfiguration * _Nonnull)configuration;
    ^
    HelloCordova/Plugins/com.tealium.cordova.v5/TealiumIOS.framework/Headers/TEALConfiguration.h:79:15: error: expected ')'

  • (NSString * _Nonnull)instanceID;
    ^
    HelloCordova/Plugins/com.tealium.cordova.v5/TealiumIOS.framework/Headers/TEALConfiguration.h:79:3: note: to match this '('

  • (NSString * _Nonnull)instanceID;
    ^
    HelloCordova/Plugins/com.tealium.cordova.v5/TealiumIOS.framework/Headers/TEALConfiguration.h:20:49: error: cannot declare variable inside @interface or @protocol
    @Property (nonatomic, copy) NSString * _Nonnull accountName;
    ^
    HelloCordova/Plugins/com.tealium.cordova.v5/TealiumIOS.framework/Headers/TEALConfiguration.h:27:49: error: cannot declare variable inside @interface or @protocol
    @Property (nonatomic, copy) NSString * _Nonnull profileName;
    ^
    HelloCordova/Plugins/com.tealium.cordova.v5/TealiumIOS.framework/Headers/TEALConfiguration.h:34:49: error: cannot declare variable inside @interface or @protocol
    @Property (nonatomic, copy) NSString * _Nonnull environmentName;
    ^
    HelloCordova/Plugins/com.tealium.cordova.v5/TealiumIOS.framework/Headers/TEALConfiguration.h:40:44: error: cannot declare variable inside @interface or @protocol
    @Property (nonatomic) NSString * _Nullable overridePublishSettingsURL;
    ^
    HelloCordova/Plugins/com.tealium.cordova.v5/TealiumIOS.framework/Headers/TEALConfiguration.h:45:44: error: cannot declare variable inside @interface or @protocol
    @Property (nonatomic) NSString * _Nullable overrideTagManagementURL;
    ^
    fatal error: too many errors emitted, stopping now [-ferror-limit=]
    5 warnings and 20 errors generated.
    /Users/administrator/Documents/*****/Tealium/Tealium/platforms/ios/HelloCordova/Plugins/com.tealium.cordova.v5/tealium_int.m:3:9: fatal error: could not
    build module 'TealiumIOS'
    @import TealiumIOS;

    5 warnings and 21 errors generated.
    
    ** BUILD FAILED **
    
    
    The following build commands failed:
    CompileC build/HelloCordova.build/Debug-iphonesimulator/HelloCordova.build/Objects-normal/i386/tealium_int.o HelloCordova/Plugins/com.tealium.cordova.v5/tealium_int.m normal i386 objective-c com.apple.compilers.llvm.clang.1_0.compiler
    (1 failure)
    ERROR building one of the platforms: Error code 65 for command: xcodebuild with args: -xcconfig,/Users/administrator/Documents/****/ConnectedCar/Tealium/Tealium/platforms/ios/cordova/build-debug.xcconfig,-project,HelloCordova.xcodeproj,ARCHS=i386,-target,HelloCordova,-configuration,Debug,-sdk,iphonesimulator,build,VALID_ARCHS=i386,CONFIGURATION_BUILD_DIR=/Users/administrator/Documents/*******/ConnectedCar/Tealium/Tealium/platforms/ios/build/emulator,SHARED_PRECOMPS_DIR=/Users/administrator/Documents/*******/ConnectedCar/Tealium/Tealium/platforms/ios/build/sharedpch
    You may not have the required environment or OS to build this project
    Error: Error code 65 for command: xcodebuild with args: -xcconfig,/Users/administrator/Documents/*******/ConnectedCar/Tealium/Tealium/platforms/ios/cordova/build-debug.xcconfig,-project,HelloCordova.xcodeproj,ARCHS=i386,-target,HelloCordova,-configuration,Debug,-sdk,iphonesimulator,build,VALID_ARCHS=i386,CONFIGURATION_BUILD_DIR=/Users/administrator/Documents/******/ConnectedCar/Tealium/Tealium/platforms/ios/build/emulator,SHARED_PRECOMPS_DIR=/Users/administrator/Documents/*******/ConnectedCar/Tealium/Tealium/platforms/ios/build/sharedpch
    

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.