When I run flutter for my physical iOS device it fails to build. I have tried to resolve the problem using flutter clean.
Failed to build iOS app Error output from Xcode build: ↳
** BUILD FAILED **
Xcode's output: ↳
/Users/arhanbusam/.pub-cache/hosted/pub.dartlang.org/audioplayers-0.15.1/darwin/Classes/AudioplayersPlugin.m:88:37:
warning: incompatible pointer types sending 'FlutterEngine ' to
parameter of type
'NSObject * _Nonnull' [-Wincompatible-pointer-types]
binaryMessenger:_headlessEngine];
^~~~~~~~~~~~~~~
In module 'Flutter' imported from /Users/arhanbusam/.pub-cache/hosted/pub.dartlang.org/audioplayers-0.15.1/darwin/Classes/AudioplayersPlugin.h:2:
/Users/arhanbusam/flutter/bin/cache/artifacts/engine/ios/Flutter.xcframework/ios-armv7_arm64/Flutter.framework/Headers/FlutterChannels.h:178:74:
note: passing argument to parameter 'messenger' here
binaryMessenger:(NSObject)messenger;
^
/Users/arhanbusam/.pub-cache/hosted/pub.dartlang.org/audioplayers-0.15.1/darwin/Classes/AudioplayersPlugin.m:417:74:
warning: 'initWithImage:' is deprecated: first deprecated in iOS 10.0
Use
-initWithBoundsSize:requestHandler: [-Wdeprecated-declarations]
MPMediaItemArtwork *albumArt = [[MPMediaItemArtwork alloc] initWithImage: artworkImage];
^
In module 'MediaPlayer' imported from /Users/arhanbusam/.pub-cache/hosted/pub.dartlang.org/audioplayers-0.15.1/darwin/Classes/AudioplayersPlugin.m:7:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.3.sdk/System/Library/Frameworks/MediaPlayer.framework/Headers/MPMediaItem.h:240:1:
note: 'initWithImage:'
has been explicitly marked deprecated here
(instancetype)initWithImage:(UIImage *)image MP_DEPRECATED("Use -initWithBoundsSize:requestHandler:", ios(5.0, 10.0));
^
2 warnings generated.
warning: MinimumOSVersion of '9.0' is less than the value of IPHONEOS_DEPLOYMENT_TARGET '13.0' - setting to '13.0'. (in target
'Runner' from project 'Runner')
building file list ... done
App.framework/
App.framework/App
App.framework/Info.plist
App.framework/flutter_assets/
App.framework/flutter_assets/AssetManifest.json
App.framework/flutter_assets/FontManifest.json
App.framework/flutter_assets/NOTICES
App.framework/flutter_assets/isolate_snapshot_data
App.framework/flutter_assets/kernel_blob.bin
App.framework/flutter_assets/vm_snapshot_data
App.framework/flutter_assets/assets/
App.framework/flutter_assets/assets/sound1.mp3
App.framework/flutter_assets/assets/sound2.mp3
App.framework/flutter_assets/fonts/
App.framework/flutter_assets/fonts/MaterialIcons-Regular.otf
App.framework/flutter_assets/fonts/NotoSans-Bold.ttf
App.framework/flutter_assets/packages/
App.framework/flutter_assets/packages/cupertino_icons/
App.framework/flutter_assets/packages/cupertino_icons/assets/
App.framework/flutter_assets/packages/cupertino_icons/assets/CupertinoIcons.ttf
sent 40468200 bytes received 348 bytes 26979032.00 bytes/sec
total size is 40462062 speedup is 1.00
building file list ... done
Flutter.framework/
Flutter.framework/Flutter
Flutter.framework/Info.plist
Flutter.framework/icudtl.dat
sent 64435719 bytes received 92 bytes 42957207.33 bytes/sec
total size is 64427549 speedup is 1.00
/Users/arhanbusam/Dropbox/Documents/Arhan-Flutter/simple_exercise_timer/build/ios/Debug-iphoneos/Exercise
Timer.app/Frameworks/App.framework/App: signed bundle with Mach-O thin
(arm64)
[io.flutter.flutter.app]
/Users/arhanbusam/Dropbox/Documents/Arhan-Flutter/simple_exercise_timer/build/ios/Debug-iphoneos/Exercise
Timer.app/Frameworks/Flutter.framework/Flutter: signed bundle with
Mach-O universal (armv7 arm64)
[io.flutter.flutter]
/Users/arhanbusam/Dropbox/Documents/Arhan-Flutter/simple_exercise_timer/build/ios/Debug-iphoneos/Exercise
Timer.app/Info.plist: Could not extract value, error: No value at that
key path or invalid key
path: NSBonjourServices
/Users/arhanbusam/Dropbox/Documents/Arhan-Flutter/simple_exercise_timer/build/ios/Debug-iphoneos/Exercise
Timer.app/Info.plist: Could not extract value, error: No value at that
key path or invalid key
path: NSLocalNetworkUsageDescription
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.8/bin/cp", line 5, in
from run.cp_run import cp_start
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/run/cp_run.py",
line 1, in
from settings.first_load import check_if_first_time
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/settings/first_load.py",
line 114, in
check_if_first_time()
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/settings/first_load.py",
line 108, in check_if_first_time
first_time()
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/settings/first_load.py",
line 70, in first_time
confirm = input()
EOFError: EOF when reading a line
Command PhaseScriptExecution failed with a nonzero exit code
note: Using new build system
note: Building targets in parallel
note: Planning build
note: Constructing build description
Could not build the precompiled application for the device.
Related
When using this script on Xcode 13.2.1, the Swift compiler returns the error:
SwiftDriver Alamofire normal i386 com.apple.xcode.tools.swift.compiler (in target 'Alamofire' from project 'Pods')
...
error: Unexpected error in driver invocation: invalid driver name: SWIFT_EXEC-no-coverage
Probably because there is a conflict with the script SWIFT_EXEC-no-coverage, is there anything that can be done to sort this issue?
For the moment I had to disable this script by commenting this line out to be able to compile the project:
# config.build_settings['SWIFT_EXEC'] = '$(SRCROOT)/../Scripts/SWIFT_EXEC-no-coverage'
As we figured it out offline, now only "swiftc" is the allowed name for the swift driver - hence try renaming "SWIFT_EXEC-no-coverage" to "swiftc" (and adjust the value in Podfile).
I'm trying to Hello World example scala file according to on my windows 10 desktop:
https://github.com/bazelbuild/rules_scala
My WORKSHOP file is as recommended in the rules_scala repo.
My BUILD file is as follows:
load("#io_bazel_rules_scala//scala:scala.bzl", "scala_test", "scala_binary")
scala_binary(
name = "helloworld",
srcs = ["HelloWorld.scala"],
main_class="HelloWorld",
)
I've set my environment variable JAVA_HOME to where my javac.exe file is located. But when I try to build it, I get the following:
EDIT: After enabling developer mode on windows, the first half of the error disappeared, but still get:
PS C:\Users\m80\Documents\GitHub\BotsForGames\HexAgony\src\hexagony> bazel build :helloworld
INFO: Repository local_jdk instantiated at:
/DEFAULT.WORKSPACE.SUFFIX:40:22: in <toplevel>
Repository rule local_java_repository defined at:
C:/users/m80/_bazel_m80/4fgq25dr/external/bazel_tools/tools/jdk/local_java_repository.bzl:66:40: in <toplevel>
ERROR: An error occurred during the fetch of repository 'local_jdk':
Traceback (most recent call last):
File "C:/users/m80/_bazel_m80/4fgq25dr/external/bazel_tools/tools/jdk/local_java_repository.bzl", line 46, column 35, in _local_java_repository_impl
repository_ctx.symlink(file, file.basename)
Error in symlink: java.io.IOException: Could not create symlink from C:/Users/m80/_bazel_m80/4fgq25dr/external/remotejdk11_win/BUILD.bazel to C:/users/m80/_bazel_m80/4fgq25dr/external/local_jdk/BUILD.bazel: C:/users/m80/_bazel_m80/4fgq25dr/external/local_jdk/BUILD.bazel (File exists)
ERROR: Error fetching repository: Traceback (most recent call last):
File "C:/users/m80/_bazel_m80/4fgq25dr/external/bazel_tools/tools/jdk/local_java_repository.bzl", line 46, column 35, in _local_java_repository_impl
repository_ctx.symlink(file, file.basename)
Error in symlink: java.io.IOException: Could not create symlink from C:/Users/m80/_bazel_m80/4fgq25dr/external/remotejdk11_win/BUILD.bazel to C:/users/m80/_bazel_m80/4fgq25dr/external/local_jdk/BUILD.bazel: C:/users/m80/_bazel_m80/4fgq25dr/external/local_jdk/BUILD.bazel (File exists)
ERROR: C:/users/m80/_bazel_m80/4fgq25dr/external/bazel_tools/tools/jdk/BUILD:336:6: #bazel_tools//tools/jdk:jdk depends on #local_jdk//:jdk in repository #local_jdk which failed to fetch. no such package '#local_jdk//': java.io.IOException: Could not create symlink from C:/Users/m80/_bazel_m80/4fgq25dr/external/remotejdk11_win/BUILD.bazel to C:/users/m80/_bazel_m80/4fgq25dr/external/local_jdk/BUILD.bazel: C:/users/m80/_bazel_m80/4fgq25dr/external/local_jdk/BUILD.bazel (File exists)
ERROR: Analysis of target '//hexagony/src/hexagony:helloworld' failed; build aborted: Analysis failed
INFO: Elapsed time: 0.588s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (3 packages loaded, 39 targets configured)
What does this mean? How could I resolve it? I couldn't seem to find many similar problems wrt Scala + Bazel
My goal here is to have opencv embedded in macOS application as static framework. I clone the repo
cd opencv/platforms/osx
python build_framework.py build
Then i get the following error
** BUILD FAILED **
The following build commands failed:
CompileC platforms/osx/build/build/build-x86_64-
macosx/modules/world/OpenCV.build/Release/opencv_world.build/Objects-normal/x86_64/opencv-
onnx.pb.o modules/dnn/misc/onnx/opencv-onnx.pb.cc normal x86_64 c++
com.apple.compilers.llvm.clang.1_0.compiler
(1 failure)
============================================================
ERROR: Command '['xcodebuild', 'MACOSX_DEPLOYMENT_TARGET=10.12', 'ARCHS=x86_64', '-sdk',
'macosx', '-configuration', 'Release', '-parallelizeTargets', '-jobs', '16', '-target',
'ALL_BUILD', 'build']' returned non-zero exit status 65
============================================================
Traceback (most recent call last):
File "/Volumes/Dev/XCode-openCV/please/opencv/platforms/ios/build_framework.py", line 148,
in build
self._build(outdir)
File "/Volumes/Dev/XCode-openCV/please/opencv/platforms/ios/build_framework.py", line 122,
in _build
self.buildOne(target[0], target[1], main_build_dir, cmake_flags)
File "/Volumes/Dev/XCode-openCV/please/opencv/platforms/ios/build_framework.py", line 255,
in buildOne
execute(buildcmd + ["-target", "ALL_BUILD", "build"], cwd = builddir)
File "/Volumes/Dev/XCode-openCV/please/opencv/platforms/ios/build_framework.py", line 44, in
execute
retcode = check_call(cmd, cwd = cwd)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py",
line 190, in check_call
raise CalledProcessError(retcode, cmd)
CalledProcessError: Command '['xcodebuild', 'MACOSX_DEPLOYMENT_TARGET=10.12',
'ARCHS=x86_64', '-sdk', 'macosx', '-configuration', 'Release', '-parallelizeTargets', '-
jobs', '16', '-target', 'ALL_BUILD', 'build']' returned non-zero exit status 65
I give up on this after couple hours. And maybe try to find another route. I find these two videos showing how to build the library with the cmake app, which builds and installs opencv at /usr/local/bin. He then opens XCode and points to these files, but he is making a macOS c++ command line app. Is there a way to use this c++ app in a swift app as a library or submodule?
am just new for flutter and when am trying to build the app it keep giving
me this error
Launching lib/main.dart on iPhone Xʀ in debug mode...
Compiler message:
../../../Library/flutter/.pub-cache/hosted/pub.dartlang.org/dio-2.2.2/lib/src/dio_http_headers.dart:55:8: Error: The method 'DioHttpHeaders.add' has
fewer named arguments than those of overridden method 'HttpHeaders.add'.
void add(String name, value) {
^
org-dartlang-sdk:///third_party/dart/sdk/lib/_http/http.dart:694:8: Context: This is the overridden method ('add').
void add(String name, Object value,
^
../../../Library/flutter/.pub-cache/hosted/pub.dartlang.org/dio-2.2.2/lib/src/dio_http_headers.dart:70:8: Error: The method 'DioHttpHeaders.set' has
fewer named arguments than those of overridden method 'HttpHeaders.set'.
void set(String name, Object value) {
^
org-dartlang-sdk:///third_party/dart/sdk/lib/_http/http.dart:703:8: Context: This is the overridden method ('set').
void set(String name, Object value,
^
Upgrading project.pbxproj
Running pod install...
2912.0s (!)
Warning: Podfile is out of date
This can cause a mismatched version of Flutter to be embedded in your app, which may result in App Store submission rejection or crashes.
If you have local Podfile edits you would like to keep, see https://github.com/flutter/flutter/issues/24641 for instructions.
To regenerate the Podfile, run:
rm iOS/Podfile
Running Xcode build...
Xcode build done. 160.7s
Failed to build iOS app
Error output from Xcode build:
↳
** BUILD FAILED **
Xcode's output:
↳
1 warning generated.
/Users/haptome/Downloads/musicfile2-mainfile/musicapp/ios/Pods/Protobuf/objectivec/google/protobuf/Type.pbobjc.m:19:10: warning: non-portable
path to file '<protobuf/Type.pbobjc.h>'; specified path differs in case from file name on disk [-Wnonportable-include-path]
#import <Protobuf/Type.pbobjc.h>
^~~~~~~~~~~~~~~~~~~~~~~~
<protobuf/Type.pbobjc.h>
/Users/haptome/Downloads/musicfile2- mainfile/musicapp/ios/Pods/Protobuf/objectivec/google/protobuf/Type.pbobjc.m:20:10: warning: non-portable
path to file '<protobuf/Any.pbobjc.h>'; specified path differs in case from file name on disk [-Wnonportable-include-path]
#import <Protobuf/Any.pbobjc.h>
^~~~~~~~~~~~~~~~~~~~~~~
<protobuf/Any.pbobjc.h>
/Users/haptome/Downloads/musicfile2-mainfile/musicapp/ios/Pods/Protobuf/objectivec/google/protobuf/Type.pbobjc.m:21:10: warning: non-portable
path to file '<protobuf/SourceContext.pbobjc.h>'; specified path differs in case from file name on disk [-Wnonportable-include-path]
#import <Protobuf/SourceContext.pbobjc.h>
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
<protobuf/SourceContext.pbobjc.h>
3 warnings generated.
/Users/haptome/Downloads/musicfile2-mainfile/musicapp/ios/Pods/Protobuf/objectivec/google/protobuf/Timestamp.pbobjc.m:17:10: warning:
non-portable path to file '<protobuf/Timestamp.pbobjc.h>'; specified path differs in case from file name on disk [-Wnonportable-include-path]
#import <Protobuf/Timestamp.pbobjc.h>
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
<protobuf/Timestamp.pbobjc.h>
3 warnings generated.
/Users/haptome/Downloads/musicfile2-mainfile/musicapp/ios/Pods/Protobuf/objectivec/google/protobuf/FieldMask.pbobjc.m:17:10: warning:
non-portable path to file '<protobuf/FieldMask.pbobjc.h>'; specified path differs in case from file name on disk [-Wnonportable-include-path]
#import <Protobuf/FieldMask.pbobjc.h>
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
<protobuf/FieldMask.pbobjc.h>
1 warning generated.
/Users/haptome/Downloads/musicfile2-mainfile/musicapp/ios/Pods/Protobuf/objectivec/google/protobuf/Empty.pbobjc.m:17:10: warning: non-portable
path to file '<protobuf/Empty.pbobjc.h>'; specified path differs in case from file name on disk [-Wnonportable-include-path]
#import <Protobuf/Empty.pbobjc.h>
^~~~~~~~~~~~~~~~~~~~~~~~~
<protobuf/Empty.pbobjc.h>
1 warning generated.
/Users/haptome/Downloads/musicfile2-mainfile/musicapp/ios/Pods/Protobuf/objectivec/google/protobuf/Duration.pbobjc.m:17:10: warning: non-portable
path to file '<protobuf/Duration.pbobjc.h>'; specified path differs in case from file name on disk [-Wnonportable-include-path]
#import <Protobuf/Duration.pbobjc.h>
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
<protobuf/Duration.pbobjc.h>
1 warning generated.
/Users/haptome/Downloads/musicfile2-mainfile/musicapp/ios/Pods/Protobuf/objectivec/google/protobuf/Api.pbobjc.m:17:10: warning: non-portable path
to file '<protobuf/Api.pbobjc.h>'; specified path differs in case from file name on disk [-Wnonportable-include-path]
#import <Protobuf/Api.pbobjc.h>
^~~~~~~~~~~~~~~~~~~~~~~
<protobuf/Api.pbobjc.h>
/Users/haptome/Downloads/musicfile2-mainfile/musicapp/ios/Pods/Protobuf/objectivec/google/protobuf/Api.pbobjc.m:18:10: warning: non-portable path
to file '<protobuf/SourceContext.pbobjc.h>'; specified path differs in case from file name on disk [-Wnonportable-include-path]
#import <Protobuf/SourceContext.pbobjc.h>
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
<protobuf/SourceContext.pbobjc.h>
/Users/haptome/Downloads/musicfile2-mainfile/musicapp/ios/Pods/Protobuf/objectivec/google/protobuf/Api.pbobjc.m:19:10: warning: non-portable path
to file '<protobuf/Type.pbobjc.h>'; specified path differs in case from file name on disk [-Wnonportable-include-path]
#import <Protobuf/Type.pbobjc.h>
^~~~~~~~~~~~~~~~~~~~~~~~
<protobuf/Type.pbobjc.h>
3 warnings generated.
/Users/haptome/Downloads/musicfile2-mainfile/musicapp/ios/Pods/Protobuf/objectivec/google/protobuf/Any.pbobjc.m:17:10: warning: non-portable path
to file '<protobuf/Any.pbobjc.h>'; specified path differs in case from file name on disk [-Wnonportable-include-path]
#import <Protobuf/Any.pbobjc.h>
^~~~~~~~~~~~~~~~~~~~~~~
<protobuf/Any.pbobjc.h>
1 warning generated.
In file included from /Users/haptome/Library/flutter/.pub-cache/hosted/pub.dartlang.org/fluttertoast-3.1.3/ios/Classes/UIView+Toast.m:26:
/Users/haptome/Library/flutter/.pub-cache/hosted/pub.dartlang.org/fluttertoast-3.1.3/ios/Classes/UIView+Toast.h:328:19: warning: empty paragraph
passed to '#param' command [-Wdocumentation]
#param sharedStyle
~~~~~~~~~~~~~~~~~^
/Users/haptome/Library/flutter/.pub-cache/hosted/pub.dartlang.org/fluttertoast-3.1.3/ios/Classes/UIView+Toast.h:343:25: warning: empty paragraph
passed to '#param' command [-Wdocumentation]
#param allowTapToDismiss
~~~~~~~~~~~~~~~~~~~~~~~^
/Users/haptome/Library/flutter/.pub-cache/hosted/pub.dartlang.org/fluttertoast-3.1.3/ios/Classes/UIView+Toast.h:343:9: warning: parameter
'allowTapToDismiss' not found in the function declaration [-Wdocumentation]
#param allowTapToDismiss
^~~~~~~~~~~~~~~~~
/Users/haptome/Library/flutter/.pub-cache/hosted/pub.dartlang.org/fluttertoast-3.1.3/ios/Classes/UIView+Toast.h:343:9: note: did you mean
'tapToDismissEnabled'?
#param allowTapToDismiss
^~~~~~~~~~~~~~~~~
tapToDismissEnabled
/Users/haptome/Library/flutter/.pub-cache/hosted/pub.dartlang.org/fluttertoast-3.1.3/ios/Classes/UIView+Toast.h:362:20: warning: empty paragraph
passed to '#param' command [-Wdocumentation]
#param queueEnabled
~~~~~~~~~~~~~~~~~~^
4 warnings generated.
In file included from /Users/haptome/Library/flutter/.pub-cache/hosted/pub.dartlang.org/fluttertoast-3.1.3/ios/Classes/FluttertoastPlugin.m:2:
/Users/haptome/Library/flutter/.pub-cache/hosted/pub.dartlang.org/fluttertoast-3.1.3/ios/Classes/UIView+Toast.h:328:19: warning: empty paragraph
passed to '#param' command [-Wdocumentation]
#param sharedStyle
~~~~~~~~~~~~~~~~~^
/Users/haptome/Library/flutter/.pub-cache/hosted/pub.dartlang.org/fluttertoast-3.1.3/ios/Classes/UIView+Toast.h:343:25: warning: empty paragraph
passed to '#param' command [-Wdocumentation]
#param allowTapToDismiss
~~~~~~~~~~~~~~~~~~~~~~~^
/Users/haptome/Library/flutter/.pub-cache/hosted/pub.dartlang.org/fluttertoast-3.1.3/ios/Classes/UIView+Toast.h:343:9: warning: parameter
'allowTapToDismiss' not found in the function declaration [-Wdocumentation]
#param allowTapToDismiss
^~~~~~~~~~~~~~~~~
/Users/haptome/Library/flutter/.pub-cache/hosted/pub.dartlang.org/fluttertoast-3.1.3/ios/Classes/UIView+Toast.h:343:9: note: did you mean
'tapToDismissEnabled'?
#param allowTapToDismiss
^~~~~~~~~~~~~~~~~
tapToDismissEnabled
/Users/haptome/Library/flutter/.pub-cache/hosted/pub.dartlang.org/fluttertoast-3.1.3/ios/Classes/UIView+Toast.h:362:20: warning: empty paragraph
passed to '#param' command [-Wdocumentation]
#param queueEnabled
~~~~~~~~~~~~~~~~~~^
/Users/haptome/Library/flutter/.pub-cache/hosted/pub.dartlang.org/fluttertoast-3.1.3/ios/Classes/FluttertoastPlugin.m:19:23: warning: unused
variable 'viewController' [-Wunused-variable]
UIViewController *viewController =
^
/Users/haptome/Library/flutter/.pub-cache/hosted/pub.dartlang.org/fluttertoast-3.1.3/ios/Classes/FluttertoastPlugin.m:70:21: warning: unused
variable 'topPadding' [-Wunused-variable]
CGFloat topPadding = window.safeAreaInsets.top;
^
/Users/haptome/Library/flutter/.pub-cache/hosted/pub.dartlang.org/fluttertoast-3.1.3/ios/Classes/FluttertoastPlugin.m:71:21: warning: unused
variable 'bottomPadding' [-Wunused-variable]
CGFloat bottomPadding = window.safeAreaInsets.bottom;
^
/Users/haptome/Library/flutter/.pub-cache/hosted/pub.dartlang.org/fluttertoast-3.1.3/ios/Classes/FluttertoastPlugin.m:48:19: warning: unused
variable 'size' [-Wunused-variable]
NSNumber *size = call.arguments[#"size"];
^
8 warnings generated.
2 warnings generated.
/Users/haptome/Library/flutter/.pub-cache/hosted/pub.dartlang.org/bitmap-0.0.5/ios/Classes/bitmap.cpp:32:18: warning: unused variable 'a'
[-Wunused-variable]
uint8_t *a = starting_pointer + i + 3;
^
/Users/haptome/Library/flutter/.pub-cache/hosted/pub.dartlang.org/bitmap-0.0.5/ios/Classes/bitmap.cpp:57:18: warning: unused variable 'a'
[-Wunused-variable]
uint8_t *a = starting_pointer + i + 3;
^
/Users/haptome/Library/flutter/.pub-cache/hosted/pub.dartlang.org/bitmap-0.0.5/ios/Classes/bitmap.cpp:84:12: warning: unused variable
'DEG_TO_RAD' [-Wunused-variable]
double DEG_TO_RAD = 0.0174532925;
^
/Users/haptome/Library/flutter/.pub-cache/hosted/pub.dartlang.org/bitmap-0.0.5/ios/Classes/bitmap.cpp:122:27: warning: variable 'br' may be
uninitialized when used here [-Wconditional-uninitialized]
r_rep = (r_rep + br) * wr;
^~
/Users/haptome/Library/flutter/.pub-cache/hosted/pub.dartlang.org/bitmap-0.0.5/ios/Classes/bitmap.cpp:99:14: note: initialize the variable 'br'
to silence this warning
double br, bg, bb;
^
= 0.0
/Users/haptome/Library/flutter/.pub-cache/hosted/pub.dartlang.org/bitmap-0.0.5/ios/Classes/bitmap.cpp:122:33: warning: variable 'wr' may be
uninitialized when used here [-Wconditional-uninitialized]
r_rep = (r_rep + br) * wr;
^~
/Users/haptome/Library/flutter/.pub-cache/hosted/pub.dartlang.org/bitmap-0.0.5/ios/Classes/bitmap.cpp:100:14: note: initialize the variable 'wr'
to silence this warning
double wr, wg, wb;
^
= 0.0
/Users/haptome/Library/flutter/.pub-cache/hosted/pub.dartlang.org/bitmap-0.0.5/ios/Classes/bitmap.cpp:123:27: warning: variable 'bg' may be
uninitialized when used here [-Wconditional-uninitialized]
g_rep = (g_rep + bg) * wg;
^~
/Users/haptome/Library/flutter/.pub-cache/hosted/pub.dartlang.org/bitmap-0.0.5/ios/Classes/bitmap.cpp:99:18: note: initialize the variable 'bg'
to silence this warning
double br, bg, bb;
^
= 0.0
/Users/haptome/Library/flutter/.pub-cache/hosted/pub.dartlang.org/bitmap-0.0.5/ios/Classes/bitmap.cpp:123:33: warning: variable 'wg' may be
uninitialized when used here [-Wconditional-uninitialized]
g_rep = (g_rep + bg) * wg;
^~
/Users/haptome/Library/flutter/.pub-cache/hosted/pub.dartlang.org/bitmap-0.0.5/ios/Classes/bitmap.cpp:100:18: note: initialize the variable 'wg'
to silence this warning
double wr, wg, wb;
^
= 0.0
/Users/haptome/Library/flutter/.pub-cache/hosted/pub.dartlang.org/bitmap-0.0.5/ios/Classes/bitmap.cpp:124:27: warning: variable 'bb' may be
uninitialized when used here [-Wconditional-uninitialized]
b_rep = (b_rep + bb) * wb;
^~
/Users/haptome/Library/flutter/.pub-cache/hosted/pub.dartlang.org/bitmap-0.0.5/ios/Classes/bitmap.cpp:99:22: note: initialize the variable 'bb'
to silence this warning
double br, bg, bb;
^
= 0.0
/Users/haptome/Library/flutter/.pub-cache/hosted/pub.dartlang.org/bitmap-0.0.5/ios/Classes/bitmap.cpp:124:33: warning: variable 'wb' may be
uninitialized when used here [-Wconditional-uninitialized]
b_rep = (b_rep + bb) * wb;
^~
/Users/haptome/Library/flutter/.pub-cache/hosted/pub.dartlang.org/bitmap-0.0.5/ios/Classes/bitmap.cpp:100:22: note: initialize the variable 'wb'
to silence this warning
double wr, wg, wb;
^
= 0.0
9 warnings generated.
/Users/haptome/Library/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_downloader-1.3.1/ios/Classes/FlutterDownloaderPlugin.m:73:53: warning:
incompatible pointer types sending 'FlutterEngine *' to parameter of type 'NSObject<FlutterBinaryMessenger> * _Nonnull'
[-Wincompatible-pointer-types]
binaryMessenger:_headlessRunner];
^~~~~~~~~~~~~~~
In module 'Flutter' imported from
/Users/haptome/Library/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_downloader-1.3.1/ios/Classes/FlutterDownloaderPlugin.h:1:
/Users/haptome/Downloads/musicfile2-mainfile/musicapp/ios/.symlinks/flutter/ios/Flutter.framework/Headers/FlutterChannels.h:178:74: note: passing
argument to parameter 'messenger' here
binaryMessenger:(NSObject<FlutterBinaryMessenger>*)messenger;
^
/Users/haptome/Library/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_downloader-1.3.1/ios/Classes/FlutterDownloaderPlugin.m:273:15: warning:
unused variable 'url' [-Wunused-variable]
NSString *url = dict[KEY_URL];
^
/Users/haptome/Library/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_downloader-1.3.1/ios/Classes/FlutterDownloaderPlugin.m:863:52: warning:
incompatible pointer types sending 'NSURLSessionTask *' to parameter of type 'NSURLSessionDownloadTask *' [-Wincompatible-pointer-types]
NSString *taskId = [self identifierForTask:task ofSession:session];
^~~~
/Users/haptome/Library/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_downloader-1.3.1/ios/Classes/FlutterDownloaderPlugin.m:160:60: note:
passing argument to parameter 'task' here
- (NSString*)identifierForTask:(NSURLSessionDownloadTask*) task ofSession:(NSURLSession *)session
^
/Users/haptome/Library/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_downloader-1.3.1/ios/Classes/FlutterDownloaderPlugin.m:904:51: warning:
block implicitly retains 'self'; explicitly mention 'self' to indicate this is intended behavior [-Wimplicit-retain-self]
localNotification.alertBody = _allFilesDownloadedMsg;
^
self->
4 warnings generated.
/Users/haptome/Library/flutter/.pub-cache/hosted/pub.dartlang.org/google_sign_in-4.0.7/ios/Classes/GoogleSignInPlugin.m:137:41: warning:
'UIApplicationOpenURLOptionsSourceApplicationKey' is only available on iOS 9.0 or newer [-Wunguarded-availability]
NSString *sourceApplication = options[UIApplicationOpenURLOptionsSourceApplicationKey];
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In module 'UIKit' imported from /Users/haptome/Downloads/musicfile2-mainfile/musicapp/ios/Pods/Target Support
Files/google_sign_in/google_sign_in-prefix.pch:2:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.4.sdk/System/Library/Frameworks/UI
Kit.framework/Headers/UIApplication.h:518:51: note: 'UIApplicationOpenURLOptionsSourceApplicationKey' has been marked as being introduced in iOS
9.0 here, but the deployment target is iOS 8.0.0
UIKIT_EXTERN UIApplicationOpenURLOptionsKey const UIApplicationOpenURLOptionsSourceApplicationKey NS_SWIFT_NAME(sourceApplication)
API_AVAILABLE(ios(9.0)); // value is an NSString containing the bundle ID of the originating application; non-nil if the originating
application and this application share the same team identifier
^
/Users/haptome/Library/flutter/.pub-cache/hosted/pub.dartlang.org/google_sign_in-4.0.7/ios/Classes/GoogleSignInPlugin.m:137:41: note: enclose
'UIApplicationOpenURLOptionsSourceApplicationKey' in an #available check to silence this warning
NSString *sourceApplication = options[UIApplicationOpenURLOptionsSourceApplicationKey];
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/haptome/Library/flutter/.pub-cache/hosted/pub.dartlang.org/google_sign_in-4.0.7/ios/Classes/GoogleSignInPlugin.m:138:27: warning:
'UIApplicationOpenURLOptionsAnnotationKey' is only available on iOS 9.0 or newer [-Wunguarded-availability]
id annotation = options[UIApplicationOpenURLOptionsAnnotationKey];
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In module 'UIKit' imported from /Users/haptome/Downloads/musicfile2-mainfile/musicapp/ios/Pods/Target Support
Files/google_sign_in/google_sign_in-prefix.pch:2:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.4.sdk/System/Library/Frameworks/UI
Kit.framework/Headers/UIApplication.h:519:51: note: 'UIApplicationOpenURLOptionsAnnotationKey' has been marked as being introduced in iOS 9.0
here, but the deployment target is iOS 8.0.0
UIKIT_EXTERN UIApplicationOpenURLOptionsKey const UIApplicationOpenURLOptionsAnnotationKey NS_SWIFT_NAME(annotation) API_AVAILABLE(ios(9.0));
// value is a property-list typed object corresponding to what the originating application passed in UIDocumentInteractionController's annotation
property
^
/Users/haptome/Library/flutter/.pub-cache/hosted/pub.dartlang.org/google_sign_in-4.0.7/ios/Classes/GoogleSignInPlugin.m:138:27: note: enclose
'UIApplicationOpenURLOptionsAnnotationKey' in an #available check to silence this warning
id annotation = options[UIApplicationOpenURLOptionsAnnotationKey];
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2 warnings generated.
While building module 'Protobuf' imported from
/Users/haptome/Downloads/musicfile2-mainfile/musicapp/ios/Pods/FirebaseMessaging/Firebase/Messaging/Protos/GtalkExtensions.pbobjc.m:27:
In file included from <module-includes>:1:
In file included from /Users/haptome/Downloads/musicfile2-mainfile/musicapp/ios/Pods/Target Support Files/Protobuf/Protobuf-umbrella.h:28:
In file included from /Users/haptome/Downloads/musicfile2-mainfile/musicapp/ios/Pods/Protobuf/objectivec/GPBProtocolBuffers.h:44:
/Users/haptome/Downloads/musicfile2-mainfile/musicapp/ios/Pods/Protobuf/objectivec/GPBWellKnownTypes.h:40:10: warning: non-portable path to file
'<protobuf/Any.pbobjc.h>'; specified path differs in case from file name on disk [-Wnonportable-include-path]
#import <Protobuf/Any.pbobjc.h>
^~~~~~~~~~~~~~~~~~~~~~~
<protobuf/Any.pbobjc.h>
/Users/haptome/Downloads/musicfile2-mainfile/musicapp/ios/Pods/Protobuf/objectivec/GPBWellKnownTypes.h:41:10: warning: non-portable path to file
'<protobuf/Duration.pbobjc.h>'; specified path differs in case from file name on disk [-Wnonportable-include-path]
#import <Protobuf/Duration.pbobjc.h>
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
<protobuf/Duration.pbobjc.h>
/Users/haptome/Downloads/musicfile2-mainfile/musicapp/ios/Pods/Protobuf/objectivec/GPBWellKnownTypes.h:42:10: warning: non-portable path to file
'<protobuf/Timestamp.pbobjc.h>'; specified path differs in case from file name on disk [-Wnonportable-include-path]
#import <Protobuf/Timestamp.pbobjc.h>
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
<protobuf/Timestamp.pbobjc.h>
While building module 'Protobuf' imported from
/Users/haptome/Downloads/musicfile2-mainfile/musicapp/ios/Pods/FirebaseMessaging/Firebase/Messaging/Protos/GtalkExtensions.pbobjc.m:27:
In file included from <module-includes>:1:
In file included from /Users/haptome/Downloads/musicfile2-mainfile/musicapp/ios/Pods/Target Support Files/Protobuf/Protobuf-umbrella.h:28:
/Users/haptome/Downloads/musicfile2-mainfile/musicapp/ios/Pods/Protobuf/objectivec/GPBProtocolBuffers.h:55:10: warning: non-portable path to file
'<protobuf/Any.pbobjc.h>'; specified path differs in case from file name on disk [-Wnonportable-include-path]
#import <Protobuf/Any.pbobjc.h>
^~~~~~~~~~~~~~~~~~~~~~~
<protobuf/Any.pbobjc.h>
/Users/haptome/Downloads/musicfile2-mainfile/musicapp/ios/Pods/Protobuf/objectivec/GPBProtocolBuffers.h:56:10: warning: non-portable path to file
'<protobuf/Api.pbobjc.h>'; specified path differs in case from file name on disk [-Wnonportable-include-path]
#import <Protobuf/Api.pbobjc.h>
^~~~~~~~~~~~~~~~~~~~~~~
<protobuf/Api.pbobjc.h>
/Users/haptome/Downloads/musicfile2-mainfile/musicapp/ios/Pods/Protobuf/objectivec/GPBProtocolBuffers.h:57:10: warning: non-portable path to file
'<protobuf/Duration.pbobjc.h>'; specified path differs in case from file name on disk [-Wnonportable-include-path]
#import <Protobuf/Duration.pbobjc.h>
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
<protobuf/Duration.pbobjc.h>
/Users/haptome/Downloads/musicfile2-mainfile/musicapp/ios/Pods/Protobuf/objectivec/GPBProtocolBuffers.h:58:10: warning: non-portable path to file
'<protobuf/Empty.pbobjc.h>'; specified path differs in case from file name on disk [-Wnonportable-include-path]
#import <Protobuf/Empty.pbobjc.h>
^~~~~~~~~~~~~~~~~~~~~~~~~
<protobuf/Empty.pbobjc.h>
/Users/haptome/Downloads/musicfile2-mainfile/musicapp/ios/Pods/Protobuf/objectivec/GPBProtocolBuffers.h:59:10: warning: non-portable path to file
'<protobuf/FieldMask.pbobjc.h>'; specified path differs in case from file name on disk [-Wnonportable-include-path]
#import <Protobuf/FieldMask.pbobjc.h>
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
<protobuf/FieldMask.pbobjc.h>
/Users/haptome/Downloads/musicfile2-mainfile/musicapp/ios/Pods/Protobuf/objectivec/GPBProtocolBuffers.h:60:10: warning: non-portable path to file
'<protobuf/SourceContext.pbobjc.h>'; specified path differs in case from file name on disk [-Wnonportable-include-path]
#import <Protobuf/SourceContext.pbobjc.h>
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
<protobuf/SourceContext.pbobjc.h>
/Users/haptome/Downloads/musicfile2-mainfile/musicapp/ios/Pods/Protobuf/objectivec/GPBProtocolBuffers.h:61:10: warning: non-portable path to file
'<protobuf/Struct.pbobjc.h>'; specified path differs in case from file name on disk [-Wnonportable-include-path]
#import <Protobuf/Struct.pbobjc.h>
^~~~~~~~~~~~~~~~~~~~~~~~~~
<protobuf/Struct.pbobjc.h>
/Users/haptome/Downloads/musicfile2-mainfile/musicapp/ios/Pods/Protobuf/objectivec/GPBProtocolBuffers.h:62:10: warning: non-portable path to file
'<protobuf/Timestamp.pbobjc.h>'; specified path differs in case from file name on disk [-Wnonportable-include-path]
#import <Protobuf/Timestamp.pbobjc.h>
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
<protobuf/Timestamp.pbobjc.h>
/Users/haptome/Downloads/musicfile2-mainfile/musicapp/ios/Pods/Protobuf/objectivec/GPBProtocolBuffers.h:63:10: warning: non-portable path to file
'<protobuf/Type.pbobjc.h>'; specified path differs in case from file name on disk [-Wnonportable-include-path]
#import <Protobuf/Type.pbobjc.h>
^~~~~~~~~~~~~~~~~~~~~~~~
<protobuf/Type.pbobjc.h>
/Users/haptome/Downloads/musicfile2-mainfile/musicapp/ios/Pods/Protobuf/objectivec/GPBProtocolBuffers.h:64:10: warning: non-portable path to file
'<protobuf/Wrappers.pbobjc.h>'; specified path differs in case from file name on disk [-Wnonportable-include-path]
#import <Protobuf/Wrappers.pbobjc.h>
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
<protobuf/Wrappers.pbobjc.h>
13 warnings generated.
13 warnings generated.
Compiler message:
../../../Library/flutter/.pub-cache/hosted/pub.dartlang.org/dio-2.2.2/lib/src/dio_http_headers.dart:55:8: Error: The method 'DioHttpHeaders.add'
has fewer named arguments than those of overridden method 'HttpHeaders.add'.
void add(String name, value) {
^
org-dartlang-sdk:///third_party/dart/sdk/lib/_http/http.dart:694:8: Context: This is the overridden method ('add').
void add(String name, Object value,
^
../../../Library/flutter/.pub-cache/hosted/pub.dartlang.org/dio-2.2.2/lib/src/dio_http_headers.dart:70:8: Error: The method 'DioHttpHeaders.set'
has fewer named arguments than those of overridden method 'HttpHeaders.set'.
void set(String name, Object value) {
^
org-dartlang-sdk:///third_party/dart/sdk/lib/_http/http.dart:703:8: Context: This is the overridden method ('set').
void set(String name, Object value,
^
Target kernel_snapshot failed: Exception: Errors during snapshot creation: null
build failed.
Command PhaseScriptExecution failed with a nonzero exit code
note: Using new build system
note: Building targets in parallel
note: Planning build
note: Constructing build description
warning: Mapping architecture armv7 to i386. Ensure that this target's Architectures and Valid Architectures build settings are configured
correctly for the iOS Simulator platform. (in target 'image_picker' from project 'Pods')
warning: Mapping architecture arm64 to x86_64. Ensure that this target's Architectures and Valid Architectures build settings are configured
correctly for the iOS Simulator platform. (in target 'image_picker' from project 'Pods')
Could not build the application for the simulator.
Error launching application on iPhone Xʀ.
and i tried
rm ios/Podfile
and
flutter run
but it gave me the same error like the above one I try many things but still it want work.
Does someone knows what can cause the problem? Maybe it's because it is run on iOS or something.
so please help me out with this one.
Thanks in advance!
please try this:
step 1 :
make sure your Flutter version
ex: 1.22
step 2 :
find latest dio pub version in : https://pub.dev/
ex: 3.x
step 3 :
check your pubspec.yaml file in your project
find dio and check version
step 4 :
if your pubspec.yaml file dio version is not matching.
edit your pubspec.yaml dio verison
ex :
dio : ^3.0.0
step 5 :
run this in your Flutter project path terminal
flutter pub upgrade
done !
It work for me
help solve the problem!
I have:
--Mac OS X 10.7.2
--Titanium Studio, build: 1.0.7.201112281340
--Xcode, ver 4.2.1, Build 4D502
--iPhone 5.0.1 iOs
--application I am trying to write
When I try to run the application on the iPhone Device I get the error.
Hier is Console Log
[TRACE] app property, ti.android.runtime : rhino
[DEBUG] Detecting modules in /Users/<USER>/Documents/Titanium Studio Workspace/sinoptic/modules
[DEBUG] Detecting modules in /Users/<USER>/Library/Application Support/Titanium/modules
[INFO] Performing clean build
[ERROR]
[ERROR] Error: Traceback (most recent call last):
File "/Users/<USER>/Library/Application Support/Titanium/mobilesdk/osx/1.8.0.1/iphone/builder.py", line 1418, in main
execute_xcode("iphoneos%s" % iphone_version,args,False)
File "/Users/<USER>/Library/Application Support/Titanium/mobilesdk/osx/1.8.0.1/iphone/builder.py", line 1180, in execute_xcode
output = run.run(args,False,False,o)
File "/Users/<USER>/Library/Application Support/Titanium/mobilesdk/osx/1.8.0.1/iphone/run.py", line 39, in run
sys.exit(rc)
SystemExit: 65
In /Users//Documents/Titanium Studio Workspace/sinoptic/build/iphone/build/build.log i have:
CodeSign build/Debug-iphoneos/ZeusLight.app
cd "/Users/<USER>/Documents/Titanium Studio Workspace/sinoptic/build/iphone"
setenv CODESIGN_ALLOCATE /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/codesign_allocate
setenv PATH "/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
/usr/bin/codesign --force --sign "iPhone Developer: <CERTIFICATE HIER>" "--resource-rules=/Users/<USER>/Documents/Titanium Studio Workspace/sinoptic/build/iphone/build/Debug-iphoneos/ZeusLight.app/ResourceRules.plist" --entitlements "/Users/<USER>/Documents/Titanium Studio Workspace/sinoptic/build/iphone/build/ZeusLight.build/Debug-iphoneos/ZeusLight-universal.build/ZeusLight.xcent" "/Users/<USER>/Documents/Titanium Studio Workspace/sinoptic/build/iphone/build/Debug-iphoneos/ZeusLight.app"
/Users/<USER>/Documents/Titanium Studio Workspace/sinoptic/build/iphone/build/Debug-iphoneos/ZeusLight.app: object file format unrecognized, invalid, or unsuitable
Command /usr/bin/codesign failed with exit code 1
** BUILD FAILED **
The following build commands failed:
CodeSign build/Debug-iphoneos/ZeusLight.app
(1 failure)
EXIT CODE WAS: 65
Exception detected in script:
Traceback (most recent call last):
File "/Users/<USER>/Library/Application Support/Titanium/mobilesdk/osx/1.8.0.1/iphone/builder.py", line 1418, in main
execute_xcode("iphoneos%s" % iphone_version,args,False)
File "/Users/<USER>/Library/Application Support/Titanium/mobilesdk/osx/1.8.0.1/iphone/builder.py", line 1180, in execute_xcode
output = run.run(args,False,False,o)
File "/Users/<USER>/Library/Application Support/Titanium/mobilesdk/osx/1.8.0.1/iphone/run.py", line 39, in run
sys.exit(rc)
SystemExit: 65
Running on the emulator - there is no error, all is well.
The reason? This is driving me crazy!
Regards...
Try to delete the "build" folder inside your app source directory. Then again build for device.