Closed SeongwoonHong closed 2 years ago
Integrate Braze SDK with my cordova app
cordova plugin add https://github.com/appboy/appboy-cordova-sdk#master
cordova build ios
cordova platform remove ios
cordova platform add ios
pod install
[!] No
Braze iOS SDK is integrated properly and I am able to build iOS by doing cordova build ios.
Cordova iOS build is failed with appboy plugin installed
package.json
"name": "...", "version": "...", "description": "", "private": true, "dependencies": { "@babel/core": "7.10.5", "@fingerprintjs/fingerprintjs": "^3.0.6", "@sentry/integrations": "^6.1.0", "@svgr/webpack": "4.3.2", "@typescript-eslint/eslint-plugin": "^2.2.0", "@typescript-eslint/parser": "^2.2.0", "afterlag-js": "^2.0.2", "axios": "^0.21.1", "babel-eslint": "10.0.3", "babel-jest": "^24.9.0", "babel-loader": "8.0.6", "babel-plugin-named-asset-import": "^0.3.4", "babel-preset-react-app": "^9.0.2", "body-scroll-lock": "^3.1.5", "camelcase": "^5.2.0", "case-sensitive-paths-webpack-plugin": "2.2.0", "chart.js": "^2.9.3", "classnames": "^2.2.6", "color": "^3.1.2", "cordova-clipboard": "^1.3.0", "cordova-plugin-file": "^6.0.2", "cordova-plugin-google-analytics": "git+https://github.com/hettiger/google-analytics-plugin.git#no-idfa", "cordova-plugin-inappbrowser": "git+https://github.com/apache/cordova-plugin-inappbrowser.git", "cordova-plugin-keyboard": "^1.2.0", "cordova-plugin-screen-orientation": "^3.0.2", "cordova-plugin-splashscreen": "~5.0.4-dev", "cordova-plugin-statusbar": "^2.4.3", "cordova-plugin-whitelist": "^1.3.3", "cordova-plugin-window-background": "git+https://github.com/douglaszaltron/cordova-plugin-window-background.git", "cordova-plugin-x-socialsharing": "^5.6.8", "country-flag-icons": "^1.2.8", "creditcards": "^3.1.0", "creditcards-types": "^2.2.1", "css-loader": "2.1.1", "dayjs": "^1.9.3", "detect-browser": "^4.8.0", "dotenv": "6.2.0", "dotenv-expand": "5.1.0", "es6-promise-plugin": "^4.2.2", "eslint": "^6.1.0", "eslint-config-airbnb": "^18.0.1", "eslint-config-react-app": "^5.0.2", "eslint-loader": "3.0.2", "eslint-plugin-flowtype": "^4.5.2", "eslint-plugin-import": "^2.20.2", "eslint-plugin-jsx-a11y": "6.2.3", "eslint-plugin-react": "^7.17.0", "eslint-plugin-react-hooks": "^2.3.0", "express": "^4.17.1", "fastclick": "^1.0.6", "file-loader": "^3.0.0", "file-saver": "^2.0.2", "firebase": "~7.3.0", "focus-visible": "^5.2.0", "fs-extra": "7.0.1", "gsap": "^3.5.1", "html-webpack-plugin": "4.0.0-beta.5", "identity-obj-proxy": "3.0.0", "immer": "^8.0.0", "is-wsl": "^1.1.0", "jest": "26.6.3", "jest-resolve": "26.6.2", "jest-watch-typeahead": "0.6.1", "libphonenumber-js": "^1.7.26", "lodash": "^4.17.15", "mini-css-extract-plugin": "0.8.0", "normalize.css": "^8.0.1", "optimize-css-assets-webpack-plugin": "5.0.3", "pnp-webpack-plugin": "1.5.0", "postcss-flexbugs-fixes": "4.1.0", "postcss-loader": "3.0.0", "postcss-normalize": "7.0.1", "postcss-preset-env": "6.7.0", "postcss-safe-parser": "4.0.1", "quagga": "^0.12.1", "react": "^16.13.1", "react-app-polyfill": "^1.0.4", "react-cookie": "^4.0.3", "react-copy-to-clipboard": "^5.0.2", "react-country-flag": "^2.3.0", "react-dev-utils": "^9.1.0", "react-dom": "^16.13.1", "react-helmet": "^5.2.1", "react-html-parser": "^2.0.2", "react-jss": "^10.3.0", "react-loading-bar": "^0.0.7", "react-minimal-pie-chart": "^5.0.2", "react-popper": "0.10.4", "react-redux": "^7.1.3", "react-router": "^5.1.2", "react-router-dom": "^5.1.2", "react-share": "^4.2.0", "react-spring": "^8.0.27", "react-swipeable": "^5.4.0", "react-use-gesture": "^7.0.16", "react-waypoint": "^9.0.2", "redux": "^4.0.4", "redux-logger": "^3.0.6", "redux-thunk": "^2.3.0", "reselect": "^4.0.0", "resolve": "1.12.0", "resolve-url-loader": "3.1.0", "rfc-encode-uri": "^1.0.3", "sass-loader": "7.2.0", "script-ext-html-webpack-plugin": "^2.1.4", "semver": "6.3.0", "sentry-cordova": "0.16.2", "serve": "^10.0.2", "smooch": "^4.17.2", "speed-measure-webpack-plugin": "^1.3.1", "store2": "^2.7.0", "style-loader": "1.0.0", "sw-precache-webpack-plugin": "0.11.4", "terser-webpack-plugin": "1.4.1", "ts-pnp": "1.1.4", "unused-files-webpack-plugin": "^3.4.0", "url-loader": "2.1.0", "url-search-params": "^1.1.0", "use-immer": "^0.4.2", "usmui": "../ui-components", "webpack": "4.41.0", "webpack-dev-server": "3.2.1", "webpack-manifest-plugin": "2.1.1", "whatwg-fetch": "2.0.3", "workbox-webpack-plugin": "4.3.1", "xml2js": "^0.4.22" }, "scripts": { .... }, "browserslist": { "production": [ ">0.2%", "not dead", "not op_mini all" ], "development": [ "last 1 chrome version", "last 1 firefox version", "last 1 safari version" ] }, "devDependencies": { "@babel/plugin-proposal-class-properties": "^7.10.4", "@babel/plugin-proposal-nullish-coalescing-operator": "^7.10.4", "@babel/plugin-proposal-optional-chaining": "^7.10.4", "@babel/plugin-syntax-dynamic-import": "^7.8.3", "@babel/plugin-transform-modules-commonjs": "^7.8.3", "@babel/preset-env": "^7.10.4", "@babel/preset-flow": "^7.10.4", "@babel/preset-react": "^7.10.4", "@cypress/code-coverage": "^3.9.5", "@storybook/addon-a11y": "^6.3.4", "@storybook/addon-actions": "^6.3.4", "@storybook/addon-docs": "^6.3.4", "@storybook/addon-jest": "^6.3.4", "@storybook/addon-knobs": "^6.2.9", "@storybook/addon-viewport": "^6.3.4", "@storybook/addons": "^6.3.4", "@storybook/client-api": "^6.3.4", "@storybook/react": "^6.3.4", "@testing-library/cypress": "^7.0.6", "@testing-library/jest-dom": "^5.12.0", "@testing-library/react": "^11.2.7", "@testing-library/user-event": "^12.2.2", "babel-plugin-istanbul": "^6.0.0", "babel-plugin-lodash": "^3.3.4", "babel-plugin-react-docgen": "^4.1.0", "babel-preset-flow": "^6.23.0", "cheerio": "^1.0.0-rc.3", "chromatic": "^4.0.3", "cordova-android": "^9.1.0", "cordova-ios": "^6.2.0", "cordova-plugin-androidx-adapter": "^1.1.3", "csp-parse": "0.0.2", "cypress": "7.5.0", "eslint": "^6.7.2", "eslint-config-airbnb": "^18.0.1", "eslint-config-prettier": "^6.11.0", "eslint-config-standard-react": "^7.0.2", "eslint-import-resolver-node": "^0.3.4", "eslint-plugin-cypress": "^2.11.2", "eslint-plugin-flowtype": "^4.2.0", "eslint-plugin-import": "^2.14.0", "eslint-plugin-jest-dom": "^3.3.0", "eslint-plugin-jsx-a11y": "^6.1.1", "eslint-plugin-react": "^7.11.1", "eslint-plugin-react-hooks": "^2.3.0", "eslint-plugin-testing-library": "^3.10.1", "flow-bin": "^0.111.3", "history": "^4.10.1", "hoist-non-react-statics": "^3.3.0", "husky": "^7.0.0", "install": "^0.12.1", "jest-environment-jsdom": "^26.6.2", "lint-staged": "^11.1.2", "mq-polyfill": "^1.1.8", "nodemon": "^1.18.4", "npm": "^6.4.1", "prettier": "^1.18.2", "prettier-eslint": "^8.8.2", "recast": "^0.16.1", "redux-mock-store": "^1.5.4", "serve-favicon": "^2.5.0", "start-server-and-test": "^1.11.6", "storybook-react-router": "^1.0.8", "style-ext-html-webpack-plugin": "^4.1.2", "webpack-bundle-analyzer": "^3.6.0", "webpack-cli": "^3.3.10", "xcode": "^2.0.0" }, "jest": { "roots": [ "<rootDir>/src" ], "collectCoverageFrom": [ "src/**/*.{js,jsx,ts,tsx}", "!src/**/*.d.ts" ], "setupFiles": [ "react-app-polyfill/jsdom" ], "setupFilesAfterEnv": [], "testMatch": [ "<rootDir>/src/**/__tests__/**/*.{js,jsx,ts,tsx}", "<rootDir>/src/**/*.{spec,test}.{js,jsx,ts,tsx}" ], "testEnvironment": "jest-environment-jsdom-fourteen", "transform": { "^.+\\.(js|jsx|ts|tsx)$": "<rootDir>/node_modules/babel-jest", "^.+\\.css$": "<rootDir>/config/jest/cssTransform.js", "^(?!.*\\.(js|jsx|ts|tsx|css|json)$)": "<rootDir>/config/jest/fileTransform.js" }, "transformIgnorePatterns": [ "[/\\\\]node_modules[/\\\\].+\\.(js|jsx|ts|tsx)$", "^.+\\.module\\.(css|sass|scss)$" ], "modulePaths": [], "moduleNameMapper": { "^react-native$": "react-native-web", "^.+\\.module\\.(css|sass|scss)$": "identity-obj-proxy" }, "moduleFileExtensions": [ "web.js", "js", "web.ts", "ts", "web.tsx", "tsx", "json", "web.jsx", "jsx", "node" ], "watchPlugins": [ "jest-watch-typeahead/filename", "jest-watch-typeahead/testname" ] }, "eslintConfig": { "extends": "react-app" }, "license": "Apache-2.0", "cordova": { "plugins": { "cordova-plugin-whitelist": {}, "cordova-plugin-file": {}, "cordova-plugin-splashscreen": {}, "cordova-plugin-statusbar": {}, "cordova-plugin-screen-orientation": {}, "cordova-plugin-window-background": { "WINDOW_BACKGROUND_COLOR": "#ffffff" }, "cordova-plugin-keyboard": {}, "cordova-clipboard": {}, "cordova-plugin-x-socialsharing": { "ANDROID_SUPPORT_V4_VERSION": "24.1.1+", "PHOTO_LIBRARY_ADD_USAGE_DESCRIPTION": "This app requires photo library access to function properly.", "PHOTO_LIBRARY_USAGE_DESCRIPTION": "This app requires photo library access to function properly." }, "cordova-plugin-google-analytics": {}, "sentry-cordova": {}, "cordova-plugin-inappbrowser": {}, "cordova-plugin-appboy": {}, "cordova-plugin-androidx-adapter": {} }, "platforms": [ "android", "ios" ] }, "homepage": "./", "start-server-and-test": "^1.11.5", "storybook-react-router": "^1.0.8", "style-ext-html-webpack-plugin": "^4.1.2", "webpack-bundle-analyzer": "^3.6.0", "lint-staged": { "src/**/*.js": "eslint" }, "nyc": { "reporter": [ "html" ], "report-dir": "cypress-coverage" } }
-config.xml
-appboy plugin is installed properly
Report
Describe your environment.
What did you do?
Integrate Braze SDK with my cordova app
cordova plugin add https://github.com/appboy/appboy-cordova-sdk#master
in my terminalcordova build ios
cordova platform remove ios
cordova platform add ios
cordova build ios
pod install
in my terminal but i get[!] No
Podfile' found in the project directory.` but I can see Podfile exists here in xcodeWhat did you expect to happen?
Braze iOS SDK is integrated properly and I am able to build iOS by doing
cordova build ios
.What happened instead?
Cordova iOS build is failed with appboy plugin installed
Steps to reproduce
cordova plugin add https://github.com/appboy/appboy-cordova-sdk#master
in my terminalcordova build ios
cordova platform remove ios
cordova platform add ios
cordova build ios
Code Snippet
package.json
-config.xml![Screen Shot 2021-10-19 at 12 15 54 PM](https://user-images.githubusercontent.com/19713918/137950981-66474e55-9adf-4074-b935-4630c4bc2d72.png)
-appboy plugin is installed properly![Screen Shot 2021-10-19 at 12 10 39 PM](https://user-images.githubusercontent.com/19713918/137950094-cee4b685-6eda-4058-909a-954dc4c2e226.png)