Please help, I have just paid for some development work and gotten the app back. The Developer claims they have no problem running the app. I can not get it to run on my machine. The app was running before the developer added state management via block.
It looks like package/cocoapods/Xcode error which should be resolvable using latest versions, but nothing I can do clears these errors. Every time I get close I run again and all the errors come right back. I am in an endless troubleshooting loop without resolution. I am a beginner and can not afford to pay the developer $50hr to troubleshoot why an app won't run on my computer so I am tools down and stalled until I get this issue resolved.
I have reinstalled Cocoapods.
I have tried deleting PODS file.
I have tried using an old PODS file.
I have ensured it is the right version for M1 with the ffi arch install.
I have updated my developer certificate.
Pasted Arch 86 into Xcode settings.
Set versions to the latest for deployment.
I have even wiped my Mac out completely and reinstalled ALL environments from scratch but the errors persist.
I have done flutter clean and Flutter pub get and flutter build iOS and flutter run 1000 times in the last week.
I can not get this app to build for iOS and I am losing my mind. I have been trying to get it to run for almost 2 weeks!
Developer spent an hour with me and all they asked me to do was all the stuff I have already done by searching online for known issues.
I am out of ideas. I need help to solve this.
PLEASE HELP
Error output from Xcode build:
↳
objc[19329]: Class AMSupportURLConnectionDelegate is implemented in both /usr/lib/libauthinstall.dylib (0x20c172c10) and
/System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice (0x1141502b8). One of the two will be used. Which one is undefined.
objc[19329]: Class AMSupportURLSession is implemented in both /usr/lib/libauthinstall.dylib (0x20c172c60) and
/System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice (0x114150308). One of the two will be used. Which one is undefined.
2021-07-22 22:34:26.062 xcodebuild[19329:246509] CFURLRequestSetHTTPCookieStorageAcceptPolicy_block_invoke: no longer implemented and should not be called
** BUILD FAILED **
Xcode's output:
↳
/Users/tlcf/Development/flutter/.pub-cache/hosted/pub.dartlang.org/location-4.3.0/ios/Classes/LocationPlugin.m:176:13: warning: 'UIAlertView' is deprecated:
first deprecated in iOS 9.0 - UIAlertView is deprecated. Use UIAlertController with a preferredStyle of UIAlertControllerStyleAlert instead
[-Wdeprecated-declarations]
UIAlertView *alert = [[UIAlertView alloc] initWithTitle:#"Location is Disabled"
^
In module 'UIKit' imported from /Users/tlcf/Development/simposi-main/ios/Pods/Target Support Files/location/location-prefix.pch:2:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.5.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIAler
tView.h:27:12: note: 'UIAlertView' has been explicitly marked deprecated here
#interface UIAlertView : UIView
^
/Users/tlcf/Development/flutter/.pub-cache/hosted/pub.dartlang.org/location-4.3.0/ios/Classes/LocationPlugin.m:176:48: warning: 'UIAlertView' is deprecated:
first deprecated in iOS 9.0 - UIAlertView is deprecated. Use UIAlertController with a preferredStyle of UIAlertControllerStyleAlert instead
[-Wdeprecated-declarations]
UIAlertView *alert = [[UIAlertView alloc] initWithTitle:#"Location is Disabled"
^
In module 'UIKit' imported from /Users/tlcf/Development/simposi-main/ios/Pods/Target Support Files/location/location-prefix.pch:2:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.5.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIAler
tView.h:27:12: note: 'UIAlertView' has been explicitly marked deprecated here
#interface UIAlertView : UIView
^
2 warnings generated.
/Users/tlcf/Development/flutter/.pub-cache/hosted/pub.dartlang.org/location-4.3.0/ios/Classes/LocationPlugin.m:176:13: warning: 'UIAlertView' is deprecated:
first deprecated in iOS 9.0 - UIAlertView is deprecated. Use UIAlertController with a preferredStyle of UIAlertControllerStyleAlert instead
[-Wdeprecated-declarations]
UIAlertView *alert = [[UIAlertView alloc] initWithTitle:#"Location is Disabled"
^
In module 'UIKit' imported from /Users/tlcf/Development/simposi-main/ios/Pods/Target Support Files/location/location-prefix.pch:2:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.5.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIAler
tView.h:27:12: note: 'UIAlertView' has been explicitly marked deprecated here
#interface UIAlertView : UIView
^
/Users/tlcf/Development/flutter/.pub-cache/hosted/pub.dartlang.org/location-4.3.0/ios/Classes/LocationPlugin.m:176:48: warning: 'UIAlertView' is deprecated:
first deprecated in iOS 9.0 - UIAlertView is deprecated. Use UIAlertController with a preferredStyle of UIAlertControllerStyleAlert instead
[-Wdeprecated-declarations]
UIAlertView *alert = [[UIAlertView alloc] initWithTitle:#"Location is Disabled"
^
In module 'UIKit' imported from /Users/tlcf/Development/simposi-main/ios/Pods/Target Support Files/location/location-prefix.pch:2:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.5.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIAler
tView.h:27:12: note: 'UIAlertView' has been explicitly marked deprecated here
#interface UIAlertView : UIView
^
2 warnings generated.
/Users/tlcf/Development/flutter/.pub-cache/hosted/pub.dartlang.org/geolocator-7.3.0/ios/Classes/GeolocatorPlugin.m:156:55: error: expected expression
openURL:options:completionHandler::[NSURL URLWithString:UIApplicationOpenSettingsURLString]];
^
/Users/tlcf/Development/flutter/.pub-cache/hosted/pub.dartlang.org/geolocator-7.3.0/ios/Classes/GeolocatorPlugin.m:156:29: error: use of undeclared identifier
'options'
openURL:options:completionHandler::[NSURL URLWithString:UIApplicationOpenSettingsURLString]];
^
/Users/tlcf/Development/flutter/.pub-cache/hosted/pub.dartlang.org/geolocator-7.3.0/ios/Classes/GeolocatorPlugin.m:156:37: error: use of undeclared identifier
'completionHandler'
openURL:options:completionHandler::[NSURL URLWithString:UIApplicationOpenSettingsURLString]];
^
3 errors generated.
note: Using new build system
note: Building targets in parallel
note: Planning build
note: Analyzing workspace
note: Constructing build description
note: Build preparation complete
/Users/tlcf/Development/simposi-main/ios/Pods/Pods.xcodeproj: warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of
supported deployment target versions is 9.0 to 14.5.99. (in target 'Flutter' from project 'Pods')
It appears that your application still contains the default signing identifier.
Try replacing 'com.example' with your signing id in Xcode:
open ios/Runner.xcworkspace
Encountered error while building for device.
Please run the application in xCode, you will get a proper error there.
In my case it was fixed with the help of this answer.
Got it resolved. I went back to my last working version before I hired the Developers and it runs just fine. So I pasted their lib in.... and that errored. They looked at error and it was because I needed to paste in the intl file and then fix a couple settings in Xcode. None of us knows why it was erroring on my computer only or why pasting their lib into my last working copy worked, but it is resolved. I suspect it was a Git conflict, because of the latest update to Xcode but we really don't know why. But it is resolved.
Thank-you to those who tried to help.
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 a local pod which mocks a bluetooth device. In it there is this line...
CBATTRequest *request = [CBATTRequest new];
Since upgrading xcode, the build errors out saying 'new' is unavailable. Clicking through confirms that in the ios 14.5 SDK, this method (init actually) is indeed marked "unavailable"
/*!
* #class CBATTRequest
*
* #discussion Represents a read or write request from a central.
*
*/
NS_CLASS_AVAILABLE(10_9, 6_0)
CB_EXTERN_CLASS #interface CBATTRequest : NSObject
- (instancetype)init NS_UNAVAILABLE;
...the thing is though, my simulator is set to ios 12.4 and the pods deployment target is set to 12.0.
As stated, this was compiling before I upgraded xcode. The pod dev subteam says it works on ios <= 12.4.
So why is it now compiling against 14.5 rather than 12.x? How do I get it to compile against 12.x?
In Xcode 12.5 init NS_UNAVAILABLE makes automatically unavailable new.
I don't know how it was working correctly with actually unavailable initializer, but now you had to find correct way of retrieving reference to valid CBATTRequest object
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
Background
I have a fairly detailed (around 2000 lines of swift code) automation framework built with Xcode 7.3 and Swift for our iOS app.
Up till a recent point, I was able to use lldb to build my framework i.e
insert breakpoint and run code up till that point
use po XCUIApplication().debugDescription and expr bla bla to build the logic
repeat
Problem
Pretty much all of a sudden, I now encounter the following error whenever running anything inside lldb's console:
(lldb) po XCUIApplication()
error: <EXPR>:2:1: error: 'XCUIApplication' is only available on iOS 9.0 or newer
XCUIApplication()
^
<EXPR>:2:1: note: add 'if #available' version check
XCUIApplication()
^
<EXPR>:2:1: note: add #available attribute to enclosing instance method
XCUIApplication()
^
<EXPR>:2:1: note: add #available attribute to enclosing extension
XCUIApplication()
^
<EXPR>:10:9: warning: initialization of variable '$__lldb_error_result' was never used; consider replacing with assignment to '_' or removing it
var $__lldb_error_result = __lldb_tmp_error
~~~~^~~~~~~~~~~~~~~~~~~~
Notes
Googling and research has not gotten me anywhere significant.
The one relevant thread I found was in the fastlane project. Unlike that comment, mine is a UI Test target.
Also, the test target's "iOS Deployment Target" is set to iOS 9.2 (in case that helps).
To the extent I remember, I haven't changed anything significantly in recent times.
My device is (and has always been) iOS 9+.
What could be going wrong?
Update 20 May 2016
Some exploration based on the answer below: https://stackoverflow.com/a/37335950/682912
The issue happens only on real devices. Simulators do not face this problem.
On real device (iPhone 6S+, iOS 9.2.1), I did a full reset of Content and Settings. This did not fix the issue.
This is a bug in the debug agent installed on your device. These are bound to the iOS version, so it probably happened when you upgraded your device. Anyway, please file a bug with http://bugreporter.apple.com.
If I'm right about the problem, it should only happen when debugging to the device, not on the simulator. That might allow you a temporary workaround till the bug gets fixed.
Double check your .xcconfig with your test target or any other means that may set your IPHONEOS_DEPLOYMENT_TARGET to lower than 9.0.
Since UITest is only available on iOS9.0 or later, change IPHONEOS_DEPLOYMENT_TARGET to 9.0+ should fix the issue.
I'm trying to compile a code using Reachability by Apple. Using an iPhone 5s on the simulator works.
But in iOS it's like some libraries are not included in the device.
It tells me that:
/Users/rebouhaymen/Desktop/Projets/UrBike/UrBike/UrBike/UrBike-Bridging-Header.h:6:9: note: in file included from /Users/rebouhaymen/Desktop/Projets/UrBike/UrBike/UrBike/UrBike-Bridging-Header.h:6:
#import "Reachability.h"
^
/Users/rebouhaymen/Desktop/Projets/UrBike/UrBike/UrBike/Tools/Reachability/Reachability.h:49:9: error: 'SystemConfiguration/SystemConfiguration.h' file not found
#import <SystemConfiguration/SystemConfiguration.h>
^
<unknown>:0: error: failed to import bridging header '/Users/rebouhaymen/Desktop/Projets/UrBike/UrBike/UrBike/UrBike-Bridging-Header.h'
Resolved. It seems I used 6.0 Xcode version instead 6.0.1. It works now.