🛠 New framework7-cli feedback needed


#43

I tried repeated the process I did the first time. It worked this time. I probably just didn’t use the command “npm start” after the CLI installation, for I thought it was supposed to be “npm run dev”.
Thanks! This is a great.
BTW, this install was PWA, with Vue.js, Split View, default theme through CLI UI.


#44

Thanks, man. It was my bad not reading the CLI instructions carefully.


#45

Whenever I re-run another newly installed app, the previous app that I last opened shows up on the browser. Already cleared browsing data (both Chrome or Edge), still no luck.


#46

Have you checked ServiceWorkers and AppCache in DevTools -> Application?


#47

a possible “bug”

framework create

the app.js is generated with:

var app = new Framework7({
  root: '#app', // App root element
  id: 'io.framework7.myapp', // App bundle ID{{/if}}
  name: 'test', // App name
  theme: 'auto', // Automatic theme detection

in the line “id”, in the end you have an (possible) extra {{/ if}}
maybe the {{/if}} it could break something in the future

options:
:heavy_check_mark: All good, you have latest framework7-cli version.
? What type of the app are you targeting? Cordova app (target native iOS and And
roid)
? App (project) name: test
? App package (Bundle ID): io.framework7.myapp
? Target Cordova platform: Android
? What type of framework do you prefer? Framework7 Core
? Choose starter template: Single View
? Should we setup project with bundler? Webpack (recommended)
? Do you want to specify custom theme color? No, use default color theme


#48

Yeah, sounds like service worker caching. If you chosen “PWA” on app creation, you need to worry about service workers. Check “Application” section in DevTools


#49

Thanks, it won’t affect anything, but you are right, better to remove :slight_smile:


#50

If I create a default Cordova.app using the command-line and try to build-cordova-prod, bundling fails on XCode 10:

Non-system Ruby in use. This may cause packaging to fail.
If you use RVM, please run rvm use system.
If you use chruby, please run chruby system.
error: archive not found at path ‘/Volumes/ST5/develop/f7_gh1/cordova/platforms/ios/Golfheroes.xcarchive’
** EXPORT FAILED **

I tried adding a build-flag, but that didn’t help:

“build-cordova-ios”: “cross-env TARGET=cordova cross-env NODE_ENV=production node ./build/build.js && cd cordova && cordova build – --buildFlag=’-UseModernBuildSystem=0’”,

any other idea?

Can we add a build.json file for this, like mentioned here:
cordova build.json


#51

I figured it out:

“build-cordova-prod”: “cross-env TARGET=cordova cross-env NODE_ENV=production node ./build/build.js && cd cordova && cordova build --buildFlag=’-UseModernBuildSystem=0’”,

works


#52

Did you try the suggested thing to switch ruby?

In one of my apps i successfully use the following command to build. But this creates app-store ready archive:

cordova build ios --release --device --buildFlag="-UseModernBuildSystem=0" --packageType="app-store"

And i have the build.json but i am not sure does it make any difference


#53

Thanks for the quick reply… I just found out we don’t need a build.json, we can pass the build-flag directly


#54

Hopefully they release update soon for supporting “modern build system”


#55

What really would be nice, if we could do a development build with integrated Testflight. (Last time I tried that, it was a major pita. Do you have any hints how to integrate that flawlessly?


#56

I still manually upload package every time via Application Loader to TestFlight. But need to check, I am sure they must have an API for that


#57

I’m still playing with building the default project:
for me, the hideSplashscreen method is never called, because at the time it is called, window.navigator.splashscreen is undefined. Calling it a bit later makes it work:

 setTimeout(function(){
    cordovaApp.handleSplashscreen();
  },400);

#58

(post withdrawn by author, will be automatically deleted in 24 hours unless flagged)


#59

Read top of this thread and create v4 app with framework7-cli


#60

I see now, I’m sorry and Thank you.


#61

With Cordova selected during installation, would I be able to test the app with PhoneGap build eventually?


#62

Hi,

Always getting an error on [email protected] install during framework7-cli install. try both Node v10 ans node V11 but without success.

ERR! sharp EACCES: permission denied

I’m on MacOS with sudo exec.

Guillaume