I have created a new project and activated hyperloop. The information in tiapp.xml is correct (as in the documentation). When I create the Android app I get this error:
Package hyperloop does not exist
When creating the iOS app I get this error:
** BUILD FAILED **
[ERROR] : The following build commands failed:
[ERROR] : Ld build/Products/Debug-iphonesimulator/Test.app/Test normal x86_64
[ERROR] : (1 failure)
It seems as if the module 'Hyperloop' could not be found? I can not find the error. I am using the titanium SDK 6.1.1GA.
Operating System
Name = Mac OS X
Version = 10.12.5
Architecture = 64bit
Node.js
Node.js Version = 4.8.4
npm Version = 2.15.11
Appcelerator CLI
Installer = 4.2.9
Core Package = 6.2.2
Titanium CLI
CLI Version = 5.0.14
node-appc Version = 0.2.41
Alloy
Alloy Version = 1.9.13
Hyperloop Requirements
Titanium: 5.4.0+
SDK: 5.4.0+
CLI: 5.4.0+
Alloy: 1.8.0+
Which CLI must be changed to 5.4.0+? And how do I do that?
appc cli -v => 6.2.2
appc ti -v => 5.0.14 UPDATE??? HOW???
appc alloy -v => 1.9.11
The shortened tiapp.xml:
<?xml version="1.0" encoding="UTF-8"?>
<ti:app xmlns:ti="http://ti.appcelerator.org">
<property name="run-on-main-thread" type="bool">true</property>
<ios>
<use-jscore-framework>true</use-jscore-framework>
</ios>
<android xmlns:android="http://schemas.android.com/apk/res/android"/>
<modules>
<module platform="commonjs">ti.cloud</module>
<module platform="android">hyperloop</module>
<module platform="iphone">hyperloop</module>
</modules>
<sdk-version>6.1.1.GA</sdk-version>
<plugins>
<plugin>ti.alloy</plugin>
<plugin>hyperloop</plugin>
</plugins>
</ti:app>
Related
I'm learning to use vueJs/Capacitor to build an app for Android & IOS.
I succeed to build the Android version, but I'm blocked with the IOS version. I tried to many way since yesterday ....
I'm working under Window 11 & vmWare - MacOS 12.
Under W11 :
npm install #capacitor/ios
npx cap add ios
npm run build
npx cap sync
copy the ./myProject/ios folder to the shared folder
Under MacOS :
opened App.xcworkspace
launched build and got the bellow error
If somebody is able to help :)
Edit :
npx cap doctor (under Windows 11)
Latest Dependencies:
#capacitor/cli: 3.3.3
#capacitor/core: 3.3.3
#capacitor/android: 3.3.3
#capacitor/ios: 3.3.3
Installed Dependencies:
#capacitor/cli: 3.3.3
#capacitor/ios: 3.3.3
#capacitor/core: 3.3.3
#capacitor/android: 3.3.3
[success] Android looking great! 👌
[error] Xcode is not installed
Issue resolved by :
Reinstallations of Ruby / curl / cocoapods
error verify_xcode_license_approved! : https://stackoverflow.com/a/60546847/3355901 (solution work with a simple command shell and not with powershell)
Could not open library 'libcurl' : https://stackoverflow.com/a/54520917/3355901
Unable to add a source with url https://cdn.cocoapods.org/ named trunk : https://stackoverflow.com/a/61179841/3355901 & https://stackoverflow.com/a/47138575/3355901
i'm actually trying to run my app but i'm stucked with that error :
Running "flutter pub get" in riverpod_stacked_app...
Launching lib/main.dart on sdk gphone x86 arm in debug mode...
Running Gradle task 'assembleDebug'...
../../.pub-cache/hosted/pub.dartlang.org/get-3.15.0/lib/get_navigation/src/extension_navigation.dart:235:37: Error: No named parameter with the name 'shadowThemeOnly'.
final theme = Theme.of(context, shadowThemeOnly: true);
^^^^^^^^^^^^^^^
../../development/flutter/packages/flutter/lib/src/material/theme.dart:119:20: Context: Found this candidate, but the arguments don't match.
static ThemeData of(BuildContext context) {
^^
../../.pub-cache/hosted/pub.dartlang.org/get-3.15.0/lib/get_navigation/src/extension_navigation.dart:431:43: Error: No named parameter with the name 'shadowThemeOnly'.
theme: Theme.of(key.currentContext, shadowThemeOnly: true),
^^^^^^^^^^^^^^^
../../development/flutter/packages/flutter/lib/src/material/theme.dart:119:20: Context: Found this candidate, but the arguments don't match.
static ThemeData of(BuildContext context) {
^^
FAILURE: Build failed with an exception.
* Where:
Script '/Users/Alex/development/flutter/packages/flutter_tools/gradle/flutter.gradle' line: 900
* What went wrong:
Execution failed for task ':app:compileFlutterBuildDebug'.
> Process 'command '/Users/Alex/development/flutter/bin/flutter'' finished with non-zero exit value 1
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
BUILD FAILED in 19s
Exception: Gradle task assembleDebug failed with exit code 1
I don't understand why it can't build. I don't see the link between those 2 errors :
get_navigation
something with the theme from material.dart
And my actual motivation to use riverpod, stacked_services and firebase.
Here is the result of flutter doctor -v :
[✓] Flutter (Channel master, 1.24.0-8.0.pre.98, on Mac OS X 10.15.7 19H2 darwin-x64, locale fr-FR)
• Flutter version 1.24.0-8.0.pre.98 at /Users/Alex/development/flutter
• Framework revision ef4ec09a06 (6 hours ago), 2020-11-05 08:02:13 -0800
• Engine revision bf259226b2
• Dart version 2.12.0 (build 2.12.0-21.0.dev)
[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.2)
• Android SDK at /Users/Alex/Library/Android/sdk
• Platform android-30, build-tools 30.0.2
• Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6222593)
• All Android licenses accepted.
[✗] Xcode - develop for iOS and macOS
✗ Xcode installation is incomplete; a full installation is necessary for iOS development.
Download at: https://developer.apple.com/xcode/download/
Or install Xcode via the App Store.
Once installed, run:
sudo xcode-select --switch /Applications/Xcode.app/Contents/Developer
sudo xcodebuild -runFirstLaunch
✗ CocoaPods not installed.
CocoaPods is used to retrieve the iOS and macOS platform side's plugin code that responds to your plugin usage on the Dart side.
Without CocoaPods, plugins will not work on iOS or macOS.
For more info, see https://flutter.dev/platform-plugins
To install see https://guides.cocoapods.org/using/getting-started.html#installation for instructions.
[✓] Android Studio (version 4.1)
• Android Studio at /Applications/Android Studio.app/Contents
• Flutter plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/9212-flutter
• Dart plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/6351-dart
• Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6222593)
[✓] Connected device (1 available)
• sdk gphone x86 arm (mobile) • emulator-5554 • android-x86 • Android 11 (API 30) (emulator)
! Doctor found issues in 1 category.
And here is my dependencies in pubspeck.yaml
version: 1.0.0+1
environment:
sdk: ">=2.7.0 <3.0.0"
dependencies:
flutter:
sdk: flutter
cupertino_icons: ^1.0.0
stacked_services:
auto_route: 0.6.9
hooks_riverpod: 0.12.1
flutter_hooks:
firebase_core: 0.5.1
firebase_auth: 0.18.2
dev_dependencies:
flutter_test:
sdk: flutter
build_runner:
auto_route_generator:
Any ideas ? I've trie to clean up my dependencies and reinstall. Also i start a blank project with flutter counter app and it runs properly.
I also had this problem today after upgrading Flutter.
I was only able to solve it after I deleted that method parameter from the file that triggered the error. You'll have to delete it in two places.
Search in .pub-cache/hosted/pub.dartlang.org/get-3.15.0/lib/get_navigation/src/extension_navigation.dart for
Theme.of(key.currentContext, shadowThemeOnly: true)
As replace it with
Theme.of(key.currentContext)
This is probably cause by the stacked_services dependency that uses the get: ^3.15.0 dependency
Later edit: this is actually not the best solution, because somebody cloning your repo will not be able to compile the project unless they also to this change
So it's better to upgrade the dependency that causes this error, or replace it with another one; but only after you ran flutter upgrade, or try changing the channel
this is already fixed by getx in 16.1. Pub upgrade will do it
https://github.com/jonataslaw/getx/issues/762
you need to remove only
ThemeData theme = Theme.of(key.currentContext, shadowThemeOnly: false);
if (theme != null) {
bottomSheet = new Theme(data: theme, child: bottomSheet);
}
return bottomSheet;
form your .pubcach folder.
I installed flutter by official docs. When I did flutter doctor -v I don't get information with :
IOS toolchain as my other(old) mac book.
[✓] iOS toolchain - develop for iOS devices (Xcode 11.2.1)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Xcode 11.2.1, Build version 11B500
• ios-deploy 1.9.4
• CocoaPods version 1.8.3
Instead this I get:
> [✓] Xcode - develop for iOS and macOS (Xcode 11.2.1)
> • Xcode at /Applications/Xcode.app/Contents/Developer
> • Xcode 11.2.1, Build version 11B500
> • CocoaPods version 1.8.4
and flutter doesn't see ios-deploy. Which I installed as well.
ios-deploy --version
1.10.0-beta.3
And as result on my new mac book my project doen't work. I cloned the same git branch on my new macbook and get error after run "flutter build ios --release --no-codesign":
8 warnings generated.
=== BUILD TARGET Runner OF PROJECT Runner WITH CONFIGURATION Release ===
ld: targeted OS version does not support use of thread local variables in __ZZN9GMSx_absl18container_internal10RandomSeedEvE7counter for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)
#Pro You was right, this is not flutter issue.
Answear:
The issue fixed by changing the Deployment Target from 8.0 to 9.0 in Xcode
I am having an issue while using add platform ios command to build ios app in ionic project. The project builds successfully in android but not is IOS.
Command used:
ionic cordova platform add ios
Error:
Using cordova-fetch for cordova-ios#~4.5.4
Adding ios project...
Creating Cordova project for the iOS platform:
Path: ../../documents/a-copy/platforms/ios
Package: com.qodelogix.assurant
Name: Assurant Drive
iOS project created with cordova-ios#4.5.5
Installing "cordova-android-support-gradle-release" for ios
Installing "cordova-plugin-braintree" for ios
Embedded Frameworks in cordova-plugin-braintree
Added Arch stripping run script build phase
Installing "cordova-plugin-camera" for ios
Failed to install 'cordova-plugin-camera': Error: Unexpected key "NSMainNibFile~ipad" while parsing <dict/>.
Ionic Info:
Ionic:
ionic (Ionic CLI) : 4.5.0 (/usr/local/lib/node_modules/ionic)
Ionic Framework : ionic-angular 3.9.2
#ionic/app-scripts : 3.2.0
Cordova:
cordova (Cordova CLI) : 8.1.2 (cordova-lib#8.1.1)
Cordova Platforms : browser 5.0.3
Cordova Plugins : cordova-plugin-ionic-keyboard 2.1.3, cordova-plugin-ionic-webview 1.2.0, (and 12 other plugins)
System:
ios-deploy : 1.9.4
ios-sim : 5.1.0
NodeJS : v8.11.4 (/usr/local/bin/node)
npm : 6.4.1
OS : macOS High Sierra
Xcode : Xcode 9.4.1 Build version 9F2000
Please help me fix this error. Any help is appreciated.
Here's what I have installed on my machine:
cordova CLI: 6.5.0
Ionic CLI Version: 2.1.17
Ionic App Lib Version: 2.1.7
ios-deploy version: Not installed
ios-sim version: Not installed
OS: Windows 10
Node Version: v6.11.0
Xcode version: Not installed
I'm writing an app with ionic 1.3.3 angular 1.5.3 and cordova 6.5
When I run this command:
cordova build windows --appx=uap
I get this error:
Processing settings for platform: windows
Building project:
C:\Users\aubrey\Source\Repos\SelfServiceApp\SelfServiceApp\platforms\windows\CordovaApp.Windows10.jsproj
Configuration : debug
Platform : anycpu
C:\Users\aubrey\Source\Repos\SelfServiceApp\SelfServiceApp\platforms\windows\CordovaApp.Windows10.jsproj(61,5): error M
SB4019: The imported project "C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v14.0\Microsoft.VisualStudio..Defau
lt.props" was not found. Confirm that the path in the <Import> declaration is correct, and that the file exists on disk
.
Error: C:\Program Files (x86)\MSBuild\14.0\bin\msbuild.exe: Command failed with exit code 1
I'm not sure why it doesn't work. The android build works.
It could be because the dependent plugin's source files are not set as "Content" type. Using cordova-windows version 5.0.0 might solve your error.