Comments (11)
Ok, I will try to emulate your steps and see from a fresh user.
Where things may be wrong.
Also yeah, will look into the naming convention as it's different.
Thanks for the issue.
from countly-sdk-cordova.
Ok, changed 2 different naming convention into one.
Changes can be reviewed here.
Countly/countly-sdk-js@2fbe205
Thanks for your view point on the naming convention.
As we are using countly-sdk-js mostly all over the places,
I have replaced ly.count.cordova to countly-sdk-js
Let me know if there is any more trouble / changes you might need.
Please re-open this issue and comment, if you feel, your issue is handled properly.
from countly-sdk-cordova.
This is great for the naming convention but it did not resolve the error.
$ cordova create testcordova com.mycompany.testcordova testcordova
$ cd testcordova
$ cordova platform add ios
$ cordova plugin add https://github.com/Countly/countly-sdk-js.git
Everything is fine at the moment.
Now :
$ rm -rf node_modules platforms plugins
$ npm ci
$ cordova platform add ios
Using cordova-fetch for cordova-ios@^4.5.5
Adding countly-sdk-js project...
Unable to load PlatformApi from platform. Error: Cannot find module '/Users/lmichenaud/Desktop/testcordova/testcordova/node_modules/countly-sdk-js'
Unhandled "error" event. (The platform "countly-sdk-js" does not appear to be a valid cordova platform. It is missing API.js. countly-sdk-js not supported.)
Can u reproduce the same ?
from countly-sdk-cordova.
ok, I couldn't reproduce the issue on the first try.
I will follow your steps, and confirm on the problem.
from countly-sdk-cordova.
[take2]$ cordova create testcordova com.mycompany.testcordova testcordova
Creating a new cordova project.
[take2]$ cd testcordova
[testcordova]$ cordova platform add ios
Using cordova-fetch for cordova-ios@~4.5.4
Adding ios project...
Creating Cordova project for the iOS platform:
Path: platforms/ios
Package: com.mycompany.testcordova
Name: testcordova
iOS project created with [email protected]
Discovered plugin "cordova-plugin-whitelist" in config.xml. Adding it to the project
Installing "cordova-plugin-whitelist" for ios
Adding cordova-plugin-whitelist to package.json
Saved plugin info for "cordova-plugin-whitelist" to config.xml
--save flag or autosave detected
Saving ios@~4.5.5 into config.xml file ...
[testcordova]$ cordova plugin add https://github.com/Countly/countly-sdk-js.git
Installing "countly-sdk-js" for ios
Adding countly-sdk-js to package.json
Saved plugin info for "countly-sdk-js" to config.xml
[testcordova]$ rm -rf node_modules platforms plugins
[testcordova]$ npm install
npm WARN [email protected] No repository field.
added 45 packages in 18.164s
[testcordova]$ cordova platform add ios
Using cordova-fetch for cordova-ios@^4.5.5
Failed to fetch platform cordova-ios@^4.5.5
Probably this is either a connection problem, or platform spec is incorrect.
Check your connection and platform name/version/URL.
Failed to get absolute path to installed module
[testcordova]$ cordova platform add ios
Using cordova-fetch for cordova-ios@^4.5.5
Adding ios project...
Creating Cordova project for the iOS platform:
Path: platforms/ios
Package: com.mycompany.testcordova
Name: testcordova
iOS project created with [email protected]
Discovered plugin "cordova-plugin-whitelist" in config.xml. Adding it to the project
Installing "cordova-plugin-whitelist" for ios
Adding cordova-plugin-whitelist to package.json
Saved plugin info for "cordova-plugin-whitelist" to config.xml
Discovered plugin "countly-sdk-js" in config.xml. Adding it to the project
Installing "countly-sdk-js" for ios
Adding countly-sdk-js to package.json
Saved plugin info for "countly-sdk-js" to config.xml
--save flag or autosave detected
Saving ios@~4.5.5 into config.xml file ...
[testcordova]$ cordova run ios
Building for iPhone X Simulator
Building project: /Users/trinisoft/office/countly/app/take2/testcordova/platforms/ios/testcordova.xcworkspace
Configuration: Debug
Platform: emulator
Build settings from command line:
CONFIGURATION_BUILD_DIR = /Users/trinisoft/office/countly/app/take2/testcordova/platforms/ios/build/emulator
SDKROOT = iphonesimulator12.1
SHARED_PRECOMPS_DIR = /Users/trinisoft/office/countly/app/take2/testcordova/platforms/ios/build/sharedpch
Build settings from configuration file '/Users/trinisoft/office/countly/app/take2/testcordova/platforms/ios/cordova/build-debug.xcconfig':
CLANG_ALLOW_NON_MODULAR_INCLUDES_IN_FRAMEWORK_MODULES = YES
CODE_SIGN_ENTITLEMENTS =
CODE_SIGN_IDENTITY = iPhone Developer
ENABLE_BITCODE = NO
GCC_PREPROCESSOR_DEFINITIONS = DEBUG=1
HEADER_SEARCH_PATHS = "$(TARGET_BUILD_DIR)/usr/local/lib/include" "$(OBJROOT)/UninstalledProducts/include" "$(OBJROOT)/UninstalledProducts/$(PLATFORM_NAME)/include" "$(BUILT_PRODUCTS_DIR)"
OTHER_LDFLAGS = -ObjC
SWIFT_OBJC_BRIDGING_HEADER =
No target specified for emulator. Deploying to iPhone-X, 12.1 simulator
/Users/trinisoft/office/countly/app/take2/testcordova/platforms/ios/build/emulator/testcordova.app/Info.plist file not found.
from countly-sdk-cordova.
Please review the log above,
I am not getting the same error,
I am using mac, with cordova, and iOS version same as you.
from countly-sdk-cordova.
BTW, you shouldn't remove the plugins folder.
But in my example, even if I did, there wasn't any problem with it.
So, something might be wrong in your platform.
Can you give me more precise details on your platform,
so that I can try on those specific variant.
OS: macOS
version: Mojave
cordova: I have it.
ios: I have it.
node -v
v9.5.0
npm -v
5.6.0
and anything that you can add.
Thanks
from countly-sdk-cordova.
OS: mac OS Mojave
cordova 8.1.2
node 10.13.0
npm 6.4.1
I have tried with node 8.9.4 and i reproduce the same error as you :
cordova platform add ios [ruby-2.5.1]
Using cordova-fetch for cordova-ios@^4.5.5
Failed to fetch platform cordova-ios@^4.5.5
Probably this is either a connection problem, or platform spec is incorrect.
Check your connection and platform name/version/URL.
"Probably this is either a connection problem, or platform spec is incorrect." -> i think it is not a connection problem but a platform spec problem.
And i think the root cause is the same, it is just that the error message is not the same between node 8.9.5/npm-5.6.0 and node 10.13.10/npm-6.4.1
from countly-sdk-cordova.
Yes, it is true.
It is related to npm / nodejs.
And for me it still works.
So hoping that is not a error from the plugin,
but something to do in the platform.
The official way to add cordova plugins is:
cordova plugin add this_plugin
npm install isn't the official way, but works!!
Let me know, if there requires my input / discussion.
I will be happy to help!
from countly-sdk-cordova.
The fact is that i have only the problem with this cordova plugin.
from countly-sdk-cordova.
I see, I will review on this with latest npm version and try to emulate the problem.
Yeah, as we have to support the latest version.
from countly-sdk-cordova.
Related Issues (20)
- Enable javascript error logging HOT 6
- Does this work in Ionic 3 HOT 1
- No example for ionic 3 HOT 9
- GCM 200 message (MismatchSenderId) Push Notification HOT 4
- Clean up commented code where necessary HOT 1
- Versioning unification HOT 1
- Implement Ratings & Feedbacks HOT 10
- Implement Compliance Hub functions (GDPR-related) HOT 1
- Rich push notifications for iOS HOT 2
- App crash on iOS with sendEvent and segments HOT 3
- Upgrade ts HOT 3
- Donβt register ios users push notification after the update 18.08.1 Ionic HOT 5
- Is there a reason for the crash log string length limit? HOT 4
- [Cordova] [iOS] Manually set location does not appear in Countly User Profile HOT 4
- Queue methods when not init HOT 1
- Compilation error on CountlyCordova.java HOT 1
- Capacitor Support? HOT 4
- Ability to clear environment data HOT 2
- google-services.json requirement 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 countly-sdk-cordova.