Not able to run simple app using Titanium - ios4

I'm new to Titanium Framework. I've created a new project, and without making any modifications to ma code, I get errors when I try to Compile/Run for iPhone.
Here is the complete log that I get in console:
[INFO] One moment, building ...
[INFO] Titanium SDK version: 1.8.0.1 (12/22/11 13:09 fbdc96f)
[INFO] iPhone Device family: universal
[INFO] iPhone SDK version: 5.0
[INFO] iPhone simulated device: ipad
[INFO] Performing full rebuild. This will take a little bit. Hold tight...
[INFO] Skipping JS compile, running from simulator
[ERROR] /Users/bhaveshjain/Documents/Titanium Studio Workspace/TitaAppDemo/build/iphone/Classes/GDataXMLNode.h:39:9: fatal error: 'libxml/tree.h' file not found [2]
[ERROR] /Users/bhaveshjain/Documents/Titanium Studio Workspace/TitaAppDemo/build/iphone/Classes/GDataXMLNode.h:39:9: fatal error: 'libxml/tree.h' file not found [2]
[ERROR]
[ERROR] Error: Traceback (most recent call last):
Also, one important thing, I have two Xcode installed in my Mac.
Xcode: 3.2.4 with iOS 4.2
Xcode: 4.2 with iOS5

I had the same problem as i was having Xcode 4.0 and 4.2 installed..
With two Xcode installed in my mac i was not able to run the application from my titanium studio.
So to run the app goto your titanium workspace and under your project >>build>>iphone.
you will find the xcode project of your titanium app. run that project with your xcode 3.2.4.
if you have updated your titanium sdk to the latest one i.e 1.7.x then you can run it with ios sdk 5 too..
As for now i have removed my older xcode and by doing it everything works fine.

Related

Flutter build for web fails with aes_decrypt.dart Error: Not found: 'dart:ffi' import 'dart:ffi'

After adding the syncfusion_flutter_datagrid, printing and pdf packages, When building for web I get the following error:
I have run flutter clean && flutter pub get but it didn't help. I also tried adding ffi to pubspec.yml.
Compiling lib/main.dart for the Web... 16.0s
Target dart2js failed: Exception: Warning: The 'dart2js' entrypoint script is deprecated, please use 'dart compile js' instead.
/root/.pub-cache/hosted/pub.dartlang.org/archive-3.3.3/lib/src/util/aes_decrypt.dart:1:8:
Error: Not found: 'dart:ffi'
import 'dart:ffi';
^
/root/.pub-cache/hosted/pub.dartlang.org/syncfusion_flutter_datagrid-20.3.56/lib/src/datagrid_widget/widgets/cell_widget.dart:695:19:
Warning: Operand of null-aware operation '!' has type 'OverlayState' which excludes null.
- 'OverlayState' is from 'package:flutter/src/widgets/overlay.dart' ('/usr/local/flutter/packages/flutter/lib/src/widgets/overlay.dart').
Overlay.of(context)!.context.findRenderObject()! as RenderBox;
^
Error: Compilation failed.
Exception: Failed to compile application for the Web.
The command '/bin/sh -c flutter build web' returned a non-zero code: 1
mark#mark-desktop:~/dev/example/cmd/client$ flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.3.7, on Ubuntu 22.04.1 LTS 5.15.0-52-generic, locale en_AU.UTF-8)
[✓] Android toolchain - develop for Android devices (Android SDK version 33.0.0)
[✓] Chrome - develop for the web
[✓] Linux toolchain - develop for Linux desktop
[✓] Android Studio (version 2021.3)
[✓] VS Code
[✓] Connected device (2 available)
[✓] HTTP Host Availability
• No issues found!
edit: I remove the syncfusion_data_grid but continue to get the same error.
Well.. it's pretty hard to pin-point the exact reason without the specific version for each package used in your project. HOWEVER, it seems like a common issue that occurs whenever a sub-dependency is configures to an old version that causes trouble.
Following this great post it seems that you need to upgrade your packages to avoid this error. Please follow these steps:
run flutter pub upgrade
if the error is not resolved - run flutter pub upgrade --major-versions
if not resolved yet - remove all dependencies (plus - comment all related code) and verify that the project compiles successfully
Needles to say that you should verify that you have proper access to your file system in order to avoid read / write issues due to insufficient permissions

Flutter compile error inside Android Studio

I had been developing a flutter mobile app for a couple of months and all was good. I just came back to the project and a few things (flutter, dart, android studio etc) upgraded. Now I can't compile my app. I created a new flutter app (the default example) and that won't compile either.
The error I'm getting is :
FAILURE: Build failed with an exception.
* What went wrong:
Could not open settings remapped class cache for bq3hllkgb26p0nrblf5gh8d37 (C:\Users\Paul\.gradle\caches\5.6.2\scripts-remapped\settings_cbd968glg60byp9f5t6vvdlee\bq3hllkgb26p0nrblf5gh8d37\settings8410a2d21ed2f87c8a0398566330ee52).
> Could not open settings generic class cache for settings file 'D:\Apps\Flutter\Examples\flutter_app\android\settings.gradle' (C:\Users\Paul\.gradle\caches\5.6.2\scripts\bq3hllkgb26p0nrblf5gh8d37\settings\settings8410a2d21ed2f87c8a0398566330ee52).
> BUG! exception in phase 'semantic analysis' in source unit '_BuildScript_' Unsupported class file major version 57
I am running:
Flutter 1.20.2
Dart 2.9.1
Android Studio 4.1
Java 1.8.0_261
JVM 13.0.2
Gradle 6.7
Windows 10
Try running
flutter stable
flutter clean
flutter downgrade
cd <Your App Folder>
and then
flutter run
in command line
I ended up completely removing Flutter from my system and then re-installed it. This fixed everything.

React Native: Failed to install the app. Could not find or load main class org.gradle.wrapper.GradleWrapperMain

I recently started my React Native journey and hit a snag before I could even start to code. I followed the guide by Facebook on how to set up your environment for a React Native project, though I installed java SDK, python and node manually instead of through chocolatey. Installing the react native application on my system went smoothly but when I try to run on my Android Emulator by using the command react-native run-android, I run into the following Error message.
info Running jetifier to migrate libraries to AndroidX. You can disable it using "--no-jetifier" flag.
Jetifier found 967 file(s) to forward-jetify. Using 4 workers...
info JS server already running.
info Launching emulator...
info Successfully launched emulator.
info Installing the app...
The system cannot find the path specified.
Error: Could not find or load main class org.gradle.wrapper.GradleWrapperMain
error Failed to install the app. Make sure you have the Android development environment set up: https://reactnative.dev/docs/environment-setup. Run CLI with --verbose flag for more details.
Error: Command failed: gradlew.bat app:installDebug -PreactNativeDevServerPort=8081
The system cannot find the path specified.
Note: I have not made any changed in any file nor deleted anything
Steps to reproduce
Run the command react-native init AwesomeProject
cd AwesomeProject
Ensure Emulator is running then start Metro Bundler with react-native start
Run command react-native run-android in a separate terminal to receive error
Steps taken to resolve
I have tried following multiple issues and queries of others with similar problems to no avail
I tried re-installing everything from scratch to no avail, and creating a new project but the same message appears after hours of re-installation
One person suggested running gradle wrapper inside the project folder, but that too made no difference
Another suggested that a file name gradle-wapper.jar would be missing, but its there in the project folder
I tried loading the Android folder of the react native project in my Android Studio, the gradle starts building but there is still no success when the gradle is built
Packages Installed
Node V12.18.2
Java SDK V8
Python 2.7
Android Studio SDK [Android 10.0 (Q)]
Android SDK Build-Tools (Installed)
Android Emulator (Installed)
Android SDK Platform-Tools (Installed)
Intel x86 Emulator Accelerator (HAXM Installer) (Installed)
Please let me know if any further information is required to understand my problem. Thanks!

Why can I run a simple counter application through an android simulator but not through an ios simulator?

I am trying to run a sample application that creates a counter on both an android simulator and an ios simulator. The android simulator is created through android studio and the ios simulator is created through xcode. The application works well on the android simulator, but not on the ios simulator when following the same steps. Any ideas on how to fix this?
This is what the return is:
Launching lib/main.dart on iPhone 11 in debug mode...
Running Xcode build...
Xcode build done. 10.8s
Failed to build iOS app
Error output from Xcode build:
↳
** BUILD FAILED **
Xcode's output:
↳
ld: framework not found Flutter
clang: error: linker command failed with exit code 1 (use -v to see invocation)
note: Using new build system
note: Building targets in parallel
note: Planning build
note: Constructing build description
warning: Capabilities for Signing & Capabilities may not function correctly because its entitlements use a placeholder team ID. To resolve this, select a development team in the Runner editor. (in target 'Runner' from project 'Runner')
Could not build the application for the simulator.
Error launching application on iPhone 11.
Type in your shell open ios/Runner.xcodeproj the on XCode go to Runner -> Targets Runner -> All
And check you have a Team selected and also if it's a physical device you granted the permission on the iPhone.
Steps: https://i.stack.imgur.com/Qeh7p.png

ANDROID STUDIO : Project Gradle Build Failed

[Click here to see screenshot]
1]Just installed android studio 4.0 on Ubuntu 20.04 ... And I tried to start a new project from examples that are present ... But immediately it load into the project page the build process failed with error 03 or so

Resources