What could be causing this error? I am using Xcode version 8.
/Users/package/workspace/apps-72dfa722-8/cordova/platforms/ios/dcc-mobile-sample/Plugins/cordova.plugins.diagnostic/Diagnostic.m:826:25: error: no known class method for selector 'isPedometerEventTrackingAvailable'
return [CMPedometer isPedometerEventTrackingAvailable];
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/package/workspace/apps-72dfa722-8/cordova/platforms/ios/dcc-mobile-sample/Plugins/cordova.plugins.diagnostic/Diagnostic.m:826:12: warning: incompatible pointer to integer conversion returning 'id' from a function with result type 'BOOL' (aka 'signed char') [-Wint-conversion]
return [CMPedometer isPedometerEventTrackingAvailable];
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2 warnings and 1 error generated.
The issue is with cordova-plugin-diagnostic, the latest version of which adds support for new functionality in iOS 10 - see this issue.
Make double sure you are building with XCode 8 for iOS 10
Ensure that you're using an up-to-date version of cordova-ios platform - latest is #4.3.1. Check with cordova platform ls
Ensure that Core Motion framework is present in your Xcode project - if not, add it.
Try building and running the plugin example project
Related
For some reason, I've started getting this when I issue the Flutter run command, I'm unsure if something has updated in the background.
Semantic Issue (Xcode): Property 'userInfo' not found on object of type 'UNNotification *'
/Users/martyn/FlutterDev/flutter/.pubcache/hosted/pub.dartlang.org/flutter_local_notifications-9.4.0/ios/Classes/FlutterLocalNotificationsPlugin.m:156:36
Semantic Issue (Xcode): Array subscript is not an integer
/Users/martyn/FlutterDev/flutter/.pubcache/hosted/pub.dartlang.org/flutter_local_notificztions-9.4.0/ios/Classes/FlutterLocalNotificationsPlugin.m:156:44
I'm also getting a number of deprecated from
/Users/martyn/FlutterDev/flutter/.pubcache/hosted/pub.dartlang.org/flutter_local_notifications-9.4.0/ios/Classes/FlutterLocalNotificationsPlugin.m:335:4:
warning: 'UILocalNotification' is deprecated: first deprecated in iOS 10.0 - Use UserNotifications
Framework's UNNotificationRequest [-Wdeprecated-declarations]
- (UILocalNotification *)buildStandardUILocalNotification:
I don't know how to resolve it.
Thank you
I resolved this by running flutter pub cache repair
I have an app which uses the CorePlot iOS library.
This app worked well, when it was compiled with Xcode 10.
However, after upgrading to Xcode 11.0 I get the following error message:
Implicit conversion changes signedness: 'CGColorRenderingIntent' (aka 'enum CGColorRenderingIntent') to 'unsigned long'
at line 481 in CPTImage.m.
How can I fix this error?
Make sure you're using the latest code from the release-2.3 branch. This error was fixed back in June.
I couldn't find any related topic so I am starting the new one.
I have macOS Sierra and latest xcode 8.
When I attach my iPhone to macbook and try to build even clean project in xcode I get following swift compiler errors:
Attempting to use the forward class 'UIViewController' as superclass of 'UIActivityViewController'
Attempting to use the forward class 'UIViewController' as superclass of 'UIAlertController'
And so on. Error count is 21 and is always same no matter what project I choose.
Someone have same problem? Any solution?
Thanks for any answer.
In iOS 10 there is clock_gettime function in system library.
When i compile curl on latest iOS SDK, configure script always define HAVE_CLOCK_GETTIME_MONOTONIC (but i define -miphoneos-version-min=8.0!), that lead to crash on previous iOS versions. Crash looks like EXC_BREAKPOINT (EXC_ARM_BREAKPOINT) on dylib stub_binder. Crash occurred when curlx_tvnow() is called. With HAVE_CLOCK_GETTIME_MONOTONIC it calls clock_gettime, that is not exists on pre-iOS 10.
Is there any way to disable HAVE_CLOCK_GETTIME_MONOTONIC when -miphoneos-version-min less then 10.0?
i have compile the CURL(https://curl.haxx.se/download.html) with adding CFLAGS= CFLAGS + "-miphoneos-version-min=8.0 -Werror=partial-availability" and its working fine for me.
trying to build [Raknet][1] iOS with xCode 6.2
but I am getting error like
/RakNet-master/Source/ReplicaManager3.cpp:141:61: Comparison between
pointer and integer ('RakNet::Connection_RM3 *' and 'int')
do anybody had successfully build RakNet on Xcode 6.2 ?
seems C++ 11 issue, I get resolved with changing false to nullptr
earlier
if (GetConnectionByGUID(participantListIn[index], worldId)==false)
now
if (GetConnectionByGUID(participantListIn[index], worldId)==nullptr)