: Error: Member not found: 'fadeDuration' - ios

Hello while trying to run my flutter iOS app on device im getting following error
SchedulerBinding.instance!
^
: Warning: Operand of null-aware operation '!' has type 'SchedulerBinding' which excludes null.
../…/selection/overlay.dart:141
'SchedulerBinding' is from 'package:flutter/src/scheduler/binding.dart' ('../../../../flutter/packages/flutter/lib/src/scheduler/binding.dart').
package:flutter/…/scheduler/binding.dart:1
if (SchedulerBinding.instance!.schedulerPhase ==
^
: Warning: Operand of null-aware operation '!' has type 'SchedulerBinding' which excludes null.
../…/selection/overlay.dart:143
'SchedulerBinding' is from 'package:flutter/src/scheduler/binding.dart' ('../../../../flutter/packages/flutter/lib/src/scheduler/binding.dart').
package:flutter/…/scheduler/binding.dart:1
SchedulerBinding.instance!.addPostFrameCallback(_markNeedsBuild);
^
: Warning: Operand of null-aware operation '!' has type 'SchedulerBinding' which excludes null.
../…/selection/overlay.dart:193
'SchedulerBinding' is from 'package:flutter/src/scheduler/binding.dart' ('../../../../flutter/packages/flutter/lib/src/scheduler/binding.dart').
package:flutter/…/scheduler/binding.dart:1
if (SchedulerBinding.instance!.schedulerPhase ==
^
: Warning: Operand of null-aware operation '!' has type 'SchedulerBinding' which excludes null.
../…/selection/overlay.dart:195
'SchedulerBinding' is from 'package:flutter/src/scheduler/binding.dart' ('../../../../flutter/packages/flutter/lib/src/scheduler/binding.dart').
package:flutter/…/scheduler/binding.dart:1
SchedulerBinding.instance!.addPostFrameCallback(_markNeedsBuild);
^
: Error: Member not found: 'fadeDuration'.
../…/selection/handle_overlay.dart:60
duration: TextSelectionOverlay.fadeDuration, vsync: this);
^^^^^^^^^^^^
Failed to package /Users/name/Desktop/Project/application/nameofapliaction/ios/...
Command PhaseScriptExecution failed with a nonzero exit code
note: Using new build system
note: Planning
note: Build preparation complete
note: Building targets in dependency order
note: Removed stale file '/Users/name/Library/Developer/Xcode/DerivedData/Runner-bwvfmwkvjuzlddcmattnzdbblkrd/Build/Products/Debug-iphoneos/Runner.app'
Result bundle written to path:
/var/folders/0w/y0t7gyj53sld2zl56qqjmyzh0000gn/T/flutter_tools.mvIp8G/flutter_ios_build_temp_direh9ulh/temporary_xcresult_bundle
Could not build the precompiled application for the device.
Error launching application on iPhone.
Exited (sigterm)
I really have no idea what the hack this means . So hoper anyone can help

Related

gem not installing unde Monterey OS X

A rails application created with Ruby 3.1.0 and rails 7.0.3 on a Mac OS X 10.13.6 bundles all required gems using Bundler version 2.3.3
When migrating the application to Mac OS X 12.3 (monterey) with the same bundler version,
this is encountered:
An error occurred while installing semacode-ruby19 (0.7.4), and Bundler cannot continue.
Commenting out the gem allows the gem intallation procedure to complete. However the application remains incomplete, test/test_helper.rb for example needs to be commented out as the application tests the generation of Barby::DataMatrix.new(...)
The aforementioned gem has not been updated in a long time (thus no expectations should be entertained) - however the functionality of encoding DataMatrix for ruby remains a going concern. What options are open at this point?
I remain uncertain as to the source of the problem - the ∆s are OS X and homebrew - and thus uncertain as to where to report this. Suggestions welcome.
Update
As per the suggestion, the manual installation of the gem also fails:
gem install semacode -v 0.7.4 -- --with-cflags="-Wno-error=implicit-function-declaration"
Fetching semacode-0.7.4.gem
Building native extensions with: '--with-cflags=-Wno-error=implicit-function-declaration'
This could take a while...
ERROR: Error installing semacode:
ERROR: Failed to build gem native extension.
current directory: /Users/deploy/.rbenv/versions/3.1.0/lib/ruby/gems/3.1.0/gems/semacode-0.7.4/ext
/Users/deploy/.rbenv/versions/3.1.0/bin/ruby -I /Users/deploy/.rbenv/versions/3.1.0/lib/ruby/3.1.0 -r ./siteconf20220830-40292-dndt8s.rb extconf.rb --with-cflags\=-Wno-error\=implicit-function-declaration
creating Makefile
current directory: /Users/deploy/.rbenv/versions/3.1.0/lib/ruby/gems/3.1.0/gems/semacode-0.7.4/ext
make DESTDIR\= clean
current directory: /Users/deploy/.rbenv/versions/3.1.0/lib/ruby/gems/3.1.0/gems/semacode-0.7.4/ext
make DESTDIR\=
compiling iec16022ecc200.c
iec16022ecc200.c:284:80: warning: data argument not used by format string [-Wformat-extra-args]
rb_raise(rb_eArgError, "cannot encode character in X12", c);
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^
iec16022ecc200.c:299:80: warning: data argument not used by format string [-Wformat-extra-args]
rb_raise(rb_eArgError, "cannot encode character in X12", c);
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^
iec16022ecc200.c:323:89: warning: data argument not used by format string [-Wformat-extra-args]
rb_raise(rb_eRuntimeError, "this should not be happening!", c);
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^
iec16022ecc200.c:498:9: warning: incompatible pointer to integer conversion initializing 'VALUE' (aka 'unsigned long') with an expression of type 'void *' [-Wint-conversion]
VALUE rb_str = NULL;
^ ~~~~
iec16022ecc200.c:908:12: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign]
grid = ALLOC_N(char, W * H);
^ ~~~~~~~~~~~~~~~~~~~~
5 warnings generated.
compiling reedsol.c
compiling semacode.c
semacode.c:61:3: warning: implicit declaration of function 'iec16022init' is invalid in C99 [-Wimplicit-function-declaration]
iec16022init(&semacode->width, &semacode->height, message);
^
semacode.c:96:28: warning: 'bzero' call operates on objects of type 'semacode_t' (aka 'struct semacode_t') while the size is based on a different type 'semacode_t *' (aka 'struct semacode_t *') [-Wsizeof-pointer-memaccess]
bzero(semacode, sizeof(semacode));
~~~~~~~~ ^~~~~~~~
semacode.c:96:28: note: did you mean to dereference the argument to 'sizeof' (and multiply it by the number of elements)?
bzero(semacode, sizeof(semacode));
^~~~~~~~
semacode.c:129:27: error: no member named 'len' in 'struct RString'
encode_string(semacode, StringValueLen(message), StringValuePtr(message));
^~~~~~~~~~~~~~~~~~~~~~~
./semacode.h:26:56: note: expanded from macro 'StringValueLen'
#define StringValueLen(s) RSTRING(RB_STRING_VALUE(s))->len
~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^
semacode.c:239:20: warning: equality comparison result unused [-Wunused-comparison]
semacode->data == NULL;
~~~~~~~~~~~~~~~^~~~~~~
semacode.c:239:20: note: use '=' to turn this equality comparison into an assignment
semacode->data == NULL;
^~
=
semacode.c:243:44: error: no member named 'len' in 'struct RString'
DATA_PTR(self) = encode_string(semacode, StringValueLen(message), StringValuePtr(message));
^~~~~~~~~~~~~~~~~~~~~~~
./semacode.h:26:56: note: expanded from macro 'StringValueLen'
#define StringValueLen(s) RSTRING(RB_STRING_VALUE(s))->len
~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^
3 warnings and 2 errors generated.
make: *** [semacode.o] Error 1
make failed, exit code 2
Gem files will remain installed in /Users/deploy/.rbenv/versions/3.1.0/lib/ruby/gems/3.1.0/gems/semacode-0.7.4 for inspection.
Results logged to /Users/deploy/.rbenv/versions/3.1.0/lib/ruby/gems/3.1.0/extensions/arm64-darwin-21/3.1.0/semacode-0.7.4/gem_make.out

AMSupportURLConnectionDelegate is implemented in both /usr/lib/libauthinstall.dylib (0x2012ebad8) & Versions/A/MobileDevice

meilbeck new % flutter build ios
The plugins flutter_geocoder, flutter_open_whatsapp use a deprecated version of the Android embedding.
To avoid unexpected runtime failures, or future build failures, try to see if these plugins support the Android V2 embedding.
Otherwise, consider removing them since a future release of Flutter will remove these deprecated APIs.
If you are plugin author, take a look at the docs for migrating the plugin to the V2 embedding:
https://flutter.dev/go/android-plugin-migration.
Building com.meilbeck for device (ios-release)...
Automatically signing iOS for device deployment using specified development team in Xcode project: 867JW4UJXC
Running Xcode build...
Xcode build done. 19.2s
Failed to build iOS app
Error output from Xcode build:
↳
objc[87290]: Class AMSupportURLConnectionDelegate is implemented in both /usr/lib/libauthinstall.dylib (0x2012ebad8) and
/System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice (0x1112542c8). One of the two will be used.
Which one is undefined.
objc[87290]: Class AMSupportURLSession is implemented in both /usr/lib/libauthinstall.dylib (0x2012ebb28) and
/System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice (0x111254318). One of the two will be used.
Which one is undefined.
2022-03-18 15:18:58.509 xcodebuild[87290:648284] DVTAssertions: Warning in
/Library/Caches/com.apple.xbs/Sources/DVTiOSFrameworks/DVTiOSFrameworks-19527/DTDeviceKitBase/DTDKRemoteDeviceData.m:373
Details: (null) deviceType from 7e6c53032d19882e548d8ba3e94aaa015c48cbcc was NULL when -platform called.
Object: <DTDKMobileDeviceToken: 0x125ebfcd0>
Method: -platform
Thread: <NSThread: 0x1140073b0>{number = 2, name = (null)}
Please file a bug at https://feedbackassistant.apple.com with this warning message and any useful information you can provide.
2022-03-18 15:18:58.661 xcodebuild[87290:648293] DVTAssertions: Warning in
/Library/Caches/com.apple.xbs/Sources/DVTiOSFrameworks/DVTiOSFrameworks-19527/DTDeviceKitBase/DTDKRemoteDeviceData.m:373
Details: (null) deviceType from 7e6c53032d19882e548d8ba3e94aaa015c48cbcc was NULL when -platform called.
Object: <DTDKMobileDeviceToken: 0x125ebfcd0>
Method: -platform
Thread: <NSThread: 0x120051510>{number = 6, name = (null)}
Please file a bug at https://feedbackassistant.apple.com with this warning message and any useful information you can provide.
** BUILD FAILED **
Xcode's output:
↳
Writing result bundle at path:
/var/folders/0x/mj92vy8s15jf03g665gyt7g40000gn/T/flutter_tools.RtsbHM/flutter_ios_build_temp_dirUnd5CU/temporary_xcresult_bun
dle
Invalid depfile: /Users/pitcher/Desktop/mailbeck_new/meilbeck
new/.dart_tool/flutter_build/27c0044011412d1e1c8103768df5edea/kernel_snapshot.d
Invalid depfile: /Users/pitcher/Desktop/mailbeck_new/meilbeck
new/.dart_tool/flutter_build/27c0044011412d1e1c8103768df5edea/kernel_snapshot.d
Error: Couldn't resolve the package 'firebase_core' in 'package:firebase_core/firebase_core.dart'.
Error: Couldn't resolve the package 'firebase_messaging' in 'package:firebase_messaging/firebase_messaging.dart'.
lib/main.dart:4:8: Error: Not found: 'package:firebase_core/firebase_core.dart'
import 'package:firebase_core/firebase_core.dart';
^
lib/main.dart:5:8: Error: Not found: 'package:firebase_messaging/firebase_messaging.dart'
import 'package:firebase_messaging/firebase_messaging.dart';
^
lib/main.dart:19:9: Error: Undefined name 'Firebase'.
await Firebase.initializeApp();
^^^^^^^^
lib/main.dart:89:28: Error: The getter 'FirebaseMessaging' isn't defined for the class '_MyHomePageState'.
- '_MyHomePageState' is from 'package:meilbeck/main.dart' ('lib/main.dart').
Try correcting the name to the name of an existing getter, or defining a getter or field named 'FirebaseMessaging'.
var firstToken = await FirebaseMessaging.instance.getToken();
^^^^^^^^^^^^^^^^^
../../flutter/.pub-cache/hosted/pub.dartlang.org/flutter_calendar_carousel-2.1.0/lib/flutter_calendar_carousel.dart:956:24:
Warning: Operand of null-aware operation '?.' has type 'WidgetsBinding' which excludes null.
- 'WidgetsBinding' is from 'package:flutter/src/widgets/binding.dart'
('../../flutter/packages/flutter/lib/src/widgets/binding.dart').
WidgetsBinding.instance?.addPostFrameCallback((_) {
^
../../flutter/.pub-cache/hosted/pub.dartlang.org/flutter_datetime_picker-1.5.1/lib/flutter_datetime_picker.dart:311:32:
Warning: Operand of null-aware operation '??' has type 'Color' which excludes null.
- 'Color' is from 'dart:ui'.
color: theme.backgroundColor ?? Colors.white,
^
../../flutter/.pub-cache/hosted/pub.dartlang.org/cached_network_image-3.2.0/lib/src/image_provider/cached_network_image_provid
er.dart:109:29: Warning: Operand of null-aware operation '?.' has type 'PaintingBinding' which excludes null.
- 'PaintingBinding' is from 'package:flutter/src/painting/binding.dart'
('../../flutter/packages/flutter/lib/src/painting/binding.dart').
() => PaintingBinding.instance?.imageCache?.evict(key),
^
../../flutter/.pub-cache/hosted/pub.dartlang.org/cached_network_image-3.2.0/lib/src/image_provider/multi_image_stream_complete
r.dart:152:22: Warning: Operand of null-aware operation '?.' has type 'SchedulerBinding' which excludes null.
- 'SchedulerBinding' is from 'package:flutter/src/scheduler/binding.dart'
('../../flutter/packages/flutter/lib/src/scheduler/binding.dart').
SchedulerBinding.instance?.scheduleFrameCallback(_handleAppFrame);
^
Unhandled exception:
FileSystemException(uri=org-dartlang-untranslatable-uri:package%3Afirebase_core%2Ffirebase_core.dart;
message=StandardFileSystem only supports file:* and data:* URIs)
#0 StandardFileSystem.entityForUri (package:front_end/src/api_prototype/standard_file_system.dart:34:7)
#1 asFileUri (package:vm/kernel_front_end.dart:653:37)
#2 writeDepfile (package:vm/kernel_front_end.dart:793:21)
<asynchronous suspension>
#3 FrontendCompiler.compile (file:///opt/s/w/ir/cache/builder/sdk/pkg/frontend_server/lib/frontend_server.dart:614:9)
<asynchronous suspension>
#4 starter (file:///opt/s/w/ir/cache/builder/sdk/pkg/frontend_server/lib/frontend_server.dart:1432:12)
<asynchronous suspension>
#5 main (file:///opt/s/w/ir/cache/builder/sdk/pkg/frontend_server/bin/frontend_server_starter.dart:9:14)
<asynchronous suspension>
Failed to package /Users/pitcher/Desktop/mailbeck_new/meilbeck new.
Command PhaseScriptExecution failed with a nonzero exit code
note: Using new build system
note: Planning
note: Build preparation complete
note: Building targets in dependency order
Result bundle written to path:
/var/folders/0x/mj92vy8s15jf03g665gyt7g40000gn/T/flutter_tools.RtsbHM/flutter_ios_build_temp_dirUnd5CU/temporary_xcresult_bun
dle
Encountered error while building for device.
You should run the following command from your flutter project root directory:
flutter pub add firebase_core
Kindly refer to this documentation for more details.

When running flutter app on iOS real device getting below errors. working fine in android and iOS simulator

/fullpath.../ios/Pods/Starscream/Sources/Starscream/Compression.swift:59:25: warning: 'withUnsafeBytes' is deprecated: use withUnsafeBytes<R>(_: (UnsafeRawBufferPointer) throws -> R) rethrows -> R instead
return try data.withUnsafeBytes { (bytes:UnsafePointer) -> Data in
^
/fullpath.../ios/Pods/Starscream/Sources/Starscream/Compression.swift:83:29: warning: initialization of 'UnsafeMutablePointer<UInt8>' results in a dangling pointer
strm.next_out = UnsafeMutablePointer<UInt8>(&buffer)
/fullpath.../ios/Pods/Starscream/Sources/Starscream/Compression.swift:83:57: note: implicit argument conversion from '[UInt8]' to 'UnsafeMutablePointer<UInt8>' produces a pointer valid only for the duration of the call to 'init(_:)'
strm.next_out = UnsafeMutablePointer<UInt8>(&buffer)
/fullpath.../ios/Pods/Starscream/Sources/Starscream/Compression.swift:83:57: note: use the 'withUnsafeMutableBufferPointer' method on Array in order to explicitly convert argument to buffer pointer valid for a defined scope
strm.next_out = UnsafeMutablePointer<UInt8>(&buffer)
/fullpath.../ios/Pods/Starscream/Sources/Starscream/Compression.swift:145:33: warning: initialization of 'UnsafeMutablePointer<UInt8>' results in a dangling pointer
strm.next_out = UnsafeMutablePointer<UInt8>(&buffer)
/fullpath.../ios/Pods/Starscream/Sources/Starscream/Compression.swift:145:61: note: implicit argument conversion from '[UInt8]' to 'UnsafeMutablePointer<UInt8>' produces a pointer valid only for the duration of the call to 'init(_:)'
strm.next_out = UnsafeMutablePointer<UInt8>(&buffer)
/fullpath.../ios/Pods/Starscream/Sources/Starscream/Compression.swift:145:61: note: use the 'withUnsafeMutableBufferPointer' method on Array in order to explicitly convert argument to buffer pointer valid for a defined scope
strm.next_out = UnsafeMutablePointer<UInt8>(&buffer)
/fullpath.../ios/Pods/Starscream/Sources/Starscream/Compression.swift:140:14: warning: 'withUnsafeBytes' is deprecated: use `withUnsafeBytes<R>(_: (UnsafeRawBufferPointer) throws -> R) rethrows -> R` instead
data.withUnsafeBytes { (ptr:UnsafePointer<UInt8>) -> Void in
Command CompileSwift failed with a nonzero exit code
While building module 'AVFoundation' imported from /fullpath.../flutter/.pub-cache/hosted/pub.dartlang.org/video_player-1.0.1/ios/Classes/FLTVideoPlayerPlugin.m:6:
In file included from <module-includes>:1:
/Volumes/MyData/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.4.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVFoundation.h:15:9: fatal error: 'AVFCore/AVFCore.h' file not found #import <AVFCore/AVFCore.h>
1 error generated.
/Volumes/MyData/Flutter_Data/flutter/.pub-cache/hosted/pub.dartlang.org/video_player-1.0.1/ios/Classes/FLTVideoPlayerPlugin.m:6:9: fatal error: could not build module 'AVFoundation'
#import <AVFoundation/AVFoundation.h>
2 errors generated.
Command CompileSwift failed with a nonzero exit code
Command CompileSwift failed with a nonzero exit code
Command CompileSwift failed with a nonzero exit code
note: Using new build system
note: Building targets in parallel
note: Planning build
note: Constructing build description

Error installing kdtree

When I tried running my Ruby code with bundle install, I encountered this error: Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
I tried running gem install kdtree and gem install kdtree -v '0.3' but it throws me the same error as well. Now I am unable to run my Ruby code. Any ideas on how to resolve this. I am running on Windows machine btw. Here's the full error log:
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
C:/RailsInstaller/Ruby2.1.0/bin/ruby.exe extconf.rb
creating Makefile
make "DESTDIR=" clean
make "DESTDIR="
generating kdtree-i386-mingw32.def
compiling kdtree.c
kdtree.c: In function 'kdtree_nearest0':
kdtree.c:221:13: error: expected identifier or '(' before ',' token
kdtree.c:237:14: error: expected expression before '=' token
kdtree.c:237:29: error: expected expression before '=' token
kdtree.c:239:14: error: expected expression before '=' token
kdtree.c:239:30: error: expected expression before '=' token
kdtree.c:241:34: error: expected expression before ',' token
kdtree.c:241:34: error: too few arguments to function 'kdtree_nearest0'
kdtree.c:217:13: note: declared here
kdtree.c:243:37: error: expected expression before ',' token
kdtree.c:243:37: error: too few arguments to function 'kdtree_nearest0'
kdtree.c:217:13: note: declared here
kdtree.c: In function 'kdtree_nearestk0':
kdtree.c:313:13: error: expected identifier or '(' before ',' token
kdtree.c:330:14: error: expected expression before '=' token
kdtree.c:330:29: error: expected expression before '=' token
kdtree.c:332:14: error: expected expression before '=' token
kdtree.c:332:30: error: expected expression before '=' token
kdtree.c:334:35: error: expected expression before ',' token
kdtree.c:334:35: error: too few arguments to function 'kdtree_nearestk0'
kdtree.c:309:13: note: declared here
kdtree.c:336:38: error: expected expression before ',' token
kdtree.c:336:38: error: too few arguments to function 'kdtree_nearestk0'
kdtree.c:309:13: note: declared here
kdtree.c: In function 'kdtree_persist':
kdtree.c:409:11: warning: unused variable 'str' [-Wunused-variable]
make: *** [kdtree.o] Error 1
make failed, exit code 2

Error trying to install rinku gem on mac

I'm having trouble installing the rinku gem version '1.7.3' on Mavericks. I followed the advice of another post that suggested to install apple-gcc42 but that didn't help. I've also tried searching google and stack overflow but couldn't find this exact issue. Here is the error:
Building native extensions. This could take a while...
ERROR: Error installing rinku:
ERROR: Failed to build gem native extension.
/Users/home/.rvm/rubies/ruby-1.9.3-p429/bin/ruby extconf.rb
creating Makefile
make clean
make
compiling autolink.c
In file included from autolink.c:17:
buffer.h:23:20: error: stdint.h: No such file or directory
In file included from autolink.c:17:
buffer.h:41: error: expected specifier-qualifier-list before 'uint8_t'
In file included from autolink.c:18:
autolink.h:31: warning: type defaults to 'int' in declaration of 'uint8_t'
autolink.h:31: error: expected ';', ',' or ')' before '*' token
autolink.h:35: error: expected declaration specifiers or '...' before 'uint8_t'
autolink.h:39: error: expected declaration specifiers or '...' before 'uint8_t'
autolink.h:43: error: expected declaration specifiers or '...' before 'uint8_t'
autolink.c:20:20: error: string.h: No such file or directory
autolink.c:21:20: error: stdlib.h: No such file or directory
autolink.c:22:19: error: stdio.h: No such file or directory
autolink.c:23:19: error: ctype.h: No such file or directory
autolink.c:30: warning: type defaults to 'int' in declaration of 'uint8_t'
... Had to leave out some of the error because it won't let me post this without a lower code to text ratio.
autolink.c: At top level:
autolink.c:256: error: expected declaration specifiers or '...' before 'uint8_t'
autolink.c: In function 'sd_autolink__url':
autolink.c:263: error: 'data' undeclared (first use in this function)
autolink.c:266: warning: implicit declaration of function 'isalpha'
autolink.c:269: warning: implicit declaration of function 'sd_autolink_issafe'
autolink.c:272: warning: incompatible implicit declaration of built-in function 'strlen'
make: *** [autolink.o] Error 1
make failed, exit code 2
this ended up fixing it for 1.9.3
xcode-select --install

Resources