Simulator not showing in Spotlight search - Big Sur
Hopefully a straight forward one here, but my Simulator app (Xcode IOS Simulator) is not being found through Spotlight search on Mac. I recently upgraded to Big Sur and I am currently using 11.1.
Just wondering if anyone is having the same problem. I am able to access Simulator through other methods but it just doesn't seem to be indexed in the Spotlight search. Cheers
See also questions close to this topic
-
Modular development in iOS
How do I add a module and manage their dependency in Xcode using swift?
Is there a way like I could done it by a few clicks in Android Studio?
What exactly is the keyword I should search for?
Or should I even need to do this in iOS development?
-
There is more than one bundle with the CFBundleIdentifier value 'org.alamofire.Alamofire' under the iOS application
I recently updated a project to Xcode 12 and I had to update carthage to 0.37. When I did that, build was fine but when I tried to push the app to the testflight, I got this error:
ERROR ITMS-90685: "CFBundleIdentifier Collision. There is more than one bundle with the CFBundleIdentifier value 'org.alamofire.Alamofire' under the iOS application '
This issue happens because I do not know how to set the frameworks come from carthage "Do not embed". In the carthage docs, they say that remove the copy-frameworks script and there is no alternative or a new way to copy frameworks as I see. How can I copy the xcframeworks without embedding in Xcode?
-
Programmatically click on home button and turn off screen in flutter
How can access programmatically home and power buttons ,I know that that turning screen off is only accessed by system apps in android , but what about moving to home screen ,can it accessed programmatically from flutter and if not are there any plugins that can do that action.
-
"RuntimeError: invalid slot offset" on trying to run python package
I use the
pyhyphen
package for a script I run all the time. Recently, I updated to MacOS Big Sur. Spyder was laggy, but I fixed that by running a virtual environment andpip install
ing what I needed. No issues.Now, when I try to run
from hyphen import Hyphenator
(here is the package page), I get the following error:runcell(0, '/Users/myname/Documents/project/project.py') Traceback (most recent call last): File "/Users/myname/Documents/project/project.py", line 17, in <module> from hyphen import Hyphenator File "/Users/myname/anaconda3/lib/python3.8/site-packages/hyphen/__init__.py", line 10, in <module> from .hyphenator import Hyphenator File "/Users/myname/anaconda3/lib/python3.8/site-packages/hyphen/hyphenator.py", line 27, in <module> from . import hnj RuntimeError: invalid slot offset
The
from hyphen import Hyphenator
is the only line in the script. I've tried uninstalling/reinstalling the package six hundred times - and I cannot find any kind of solution forinvalid slot offset
. All other packages import fine, no issues.Spyder (in Anaconda) is running python version 3.8.5. I have non-anaconda 3.9 installed, but I can't imagine that has any effect since I'm running spyder in a virtual environment.
-
(Linux/Mac) find command - how to execute multiple commands to the same file before moving on to the next one?
Edit: My shell version is requested:
zsh 5.7.1 (x86_64-apple-darwin18.2.0)
I'm on Mac, but this is a Linux command (
find
) I'm using in terminal.So my overall goal is already somewhat reached, but I'm wanting to make it cleaner/more efficient and have less problems.
I'm converting a bunch of .wav and .aif files in several sorted directories to .flac using:
find . -type f -name "*.aiff" -exec flac -8 "{}" \; && find . -type f -name "*.aiff" -exec rm "{}" \; && find . -type f -name "*.wav" -exec flac -8 "{}" \; && find . -type f -name "*.wav" -exec rm "{}" \;
(convert.sh)Which works, if I'm not continuing work in the directory. Doing so produces more .wav and .aif files that end up being deleted without being converted since I produce them during conversion, and
find
isn't looking for more wavs to convert after the first part of code is executed, only for wavs to delete.I've tried using && with
find
- for example:find . -type f -name "*.wav" -exec flac -8 "{}" && rm "{}" \;
However that seems to think after && is a new command, not part of the same command I want to execute, and gives errorfind: -exec: no terminating ";" or "+"
.(Potential Solution) I know I could somehow use a .sh file but I don't know how to set it up so that it works like
/path/to/convertanddeletebeforenextfile.sh /path/to/filetoconvert.wav
to be able to usefind . -type f -name "*.wav" -exec /path/to/convertanddeletebeforenextfile.sh "{}" \;
Could someone help me with this final straight to the point goal:
Convert .wav/.aif to .flac and delete original, then move to next .wav/.aif
-
How to add own images in customized ribbon in outlook?
Outlook->File->Options->Customize Ribbon In customize ribbon their is customize tab. In that tab different sab-tabs then how can we add images to that sub-tabs. We can say how can we add own images to them like icon images.
-
Hi, i am trying to use Firebase-admob in flutter, i am getting that error while running application on IOS simulator
Failed to build iOS app Error output from Xcode build: ↳ ** BUILD FAILED **
Xcode's output: ↳ In file included from /Users/bism/development/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_admob-0.11.0+1/ios/Classes/FLTRequestFactory.m:6: /Users/bism/development/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_admob-0.11.0+1/ios/Classes/FLTFirebaseAdMobPlugin.h:28:4: error: expected a type - (GADUnifiedNativeAdView *)createNativeAd:(GADUnifiedNativeAd *)nativeAd ^ /Users/bism/development/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_admob-0.11.0+1/ios/Classes/FLTFirebaseAdMobPlugin.h:28:45: error: expected a type - (GADUnifiedNativeAdView *)createNativeAd:(GADUnifiedNativeAd *)nativeAd ^ /Users/bism/development/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_admob-0.11.0+1/ios/Classes/FLTRequestFactory.m:71:13: error: property 'testDevices' not found on object of type 'GADRequest *' request.testDevices = testDevices; ^ /Users/bism/development/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_admob-0.11.0+1/ios/Classes/FLTRequestFactory.m:91:15: error: property 'birthday' not found on object of type 'GADRequest *' request.birthday = ^ /Users/bism/development/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_admob-0.11.0+1/ios/Classes/FLTRequestFactory.m:106:19: error: property 'gender' not found on object of type 'GADRequest *' request.gender = genderValue; ^ /Users/bism/development/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_admob-0.11.0+1/ios/Classes/FLTRequestFactory.m:116:14: error: no visible @interface for 'GADRequest' declares the selector 'tagForChildDirectedTreatment:' [request tagForChildDirectedTreatment:childDirected.boolValue]; ~~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ 6 errors generated. In file included from /Users/bism/development/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_admob-0.11.0+1/ios/Classes/FLTRewardedVideoAdWrapper.m:6: /Users/bism/development/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_admob-0.11.0+1/ios/Classes/FLTFirebaseAdMobPlugin.h:28:4: error: expected a type - (GADUnifiedNativeAdView *)createNativeAd:(GADUnifiedNativeAd *)nativeAd ^ /Users/bism/development/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_admob-0.11.0+1/ios/Classes/FLTFirebaseAdMobPlugin.h:28:45: error: expected a type - (GADUnifiedNativeAdView *)createNativeAd:(GADUnifiedNativeAd *)nativeAd ^ /Users/bism/development/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_admob-0.11.0+1/ios/Classes/FLTRewardedVideoAdWrapper.m:11:42: error: cannot find protocol declaration for 'GADRewardBasedVideoAdDelegate' @interface FLTRewardedVideoAdWrapper () ^ /Users/bism/development/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_admob-0.11.0+1/ios/Classes/FLTRewardedVideoAdWrapper.m:80:37: error: expected a type - (void)rewardBasedVideoAd:(nonnull GADRewardBasedVideoAd *)rewardBasedVideoAd ^ /Users/bism/development/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_admob-0.11.0+1/ios/Classes/FLTRewardedVideoAdWrapper.m:87:37: error: expected a type - (void)rewardBasedVideoAd:(nonnull GADRewardBasedVideoAd *)rewardBasedVideoAd ^ /Users/bism/development/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_admob-0.11.0+1/ios/Classes/FLTRewardedVideoAdWrapper.m:95:49: error: expected a type - (void)rewardBasedVideoAdDidReceiveAd:(nonnull GADRewardBasedVideoAd *)rewardBasedVideoAd { ^ /Users/bism/development/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_admob-0.11.0+1/ios/Classes/FLTRewardedVideoAdWrapper.m:100:44: error: expected a type - (void)rewardBasedVideoAdDidOpen:(nonnull GADRewardBasedVideoAd *)rewardBasedVideoAd { ^ /Users/bism/development/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_admob-0.11.0+1/ios/Classes/FLTRewardedVideoAdWrapper.m:104:52: error: expected a type - (void)rewardBasedVideoAdDidStartPlaying:(nonnull GADRewardBasedVideoAd *)rewardBasedVideoAd { ^ /Users/bism/development/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_admob-0.11.0+1/ios/Classes/FLTRewardedVideoAdWrapper.m:108:55: error: expected a type - (void)rewardBasedVideoAdDidCompletePlaying:(nonnull GADRewardBasedVideoAd *)rewardBasedVideoAd { ^ /Users/bism/development/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_admob-0.11.0+1/ios/Classes/FLTRewardedVideoAdWrapper.m:112:45: error: expected a type - (void)rewardBasedVideoAdDidClose:(nonnull GADRewardBasedVideoAd *)rewardBasedVideoAd { ^ /Users/bism/development/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_admob-0.11.0+1/ios/Classes/FLTRewardedVideoAdWrapper.m:117:57: error: expected a type - (void)rewardBasedVideoAdWillLeaveApplication:(nonnull GADRewardBasedVideoAd *)rewardBasedVideoAd { ^ /Users/bism/development/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_admob-0.11.0+1/ios/Classes/FLTRewardedVideoAdWrapper.m:39:6: error: use of undeclared identifier 'GADRewardBasedVideoAd' [GADRewardBasedVideoAd sharedInstance].delegate = self; ^ /Users/bism/development/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_admob-0.11.0+1/ios/Classes/FLTRewardedVideoAdWrapper.m:56:5: error: use of undeclared identifier 'GADRewardBasedVideoAd' [[GADRewardBasedVideoAd sharedInstance] loadRequest:[factory createRequest] ^ /Users/bism/development/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_admob-0.11.0+1/ios/Classes/FLTRewardedVideoAdWrapper.m:61:5: error: use of undeclared identifier 'GADRewardBasedVideoAd' [[GADRewardBasedVideoAd sharedInstance] ^ /Users/bism/development/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_admob-0.11.0+1/ios/Classes/FLTRewardedVideoAdWrapper.m:66:5: error: use of undeclared identifier 'GADRewardBasedVideoAd' [[GADRewardBasedVideoAd sharedInstance] setUserIdentifier:userIdentifier]; ^ /Users/bism/development/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_admob-0.11.0+1/ios/Classes/FLTRewardedVideoAdWrapper.m:70:5: error: use of undeclared identifier 'GADRewardBasedVideoAd' [[GADRewardBasedVideoAd sharedInstance] setCustomRewardString:customRewardString]; ^ /Users/bism/development/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_admob-0.11.0+1/ios/Classes/FLTRewardedVideoAdWrapper.m:75:66: warning: implicit conversion loses integer precision: 'FLTRewardedVideoAdStatus' to 'int' [-Wshorten-64-to-32] (NSString *)rewardedStatusToString[[NSNumber numberWithInt:_rewardedStatus]]; ~ ^~~~~~~~~~~~~~~ 1 warning and 16 errors generated. note: Using new build system note: Building targets in parallel note: Planning build note: Constructing build description
Could not build the application for the simulator. Error launching application on iPhone 8.
-
React Native Debug Mode UI Freeze on Fetching until I Press the Screen
I'm using RN 0.63.4, Axios 0.21.1, React Navigation 5, and iOS 14 iPhone 11 Simulator.
I use useContext in the child screen to track context's variable changes. This variable is set after fetching complete in context:
setIsLoggedIn(true)
. By using iOS simulator Debug Mode, every time the fetching process starts, the app is freezing until I press the simulator screen. If I disable the debug mode, everything works fine with no freezing.Anyone experienced this issue? I want to keep working in iOS Debug Mode, so how to solve this? Please advice 🙏
-
Swift 5: CoreLocation Error in Xcode 12 on M1 Chip
I just try to display user location on the map in my application. Here is the code of my single view controller
import UIKit import MapKit import CoreLocation class ViewController: UIViewController { @IBOutlet weak var mapView: MKMapView! fileprivate let locationManager = CLLocationManager() override func viewDidLoad() { super.viewDidLoad() locationManager.requestWhenInUseAuthorization() locationManager.desiredAccuracy = kCLLocationAccuracyBest locationManager.distanceFilter = kCLDistanceFilterNone locationManager.startUpdatingLocation() mapView.showsUserLocation = true } }
But when I try to set showsUserLocation to true, I get such error:
2021-03-01 15:40:13.158237+0300 Test[3618:220718] [MKCoreLocationProvider] CLLocationManager(<CLLocationManager: 0x600003799a20>) for <MKCoreLocationProvider: 0x60000079d3b0> did fail with error: Error Domain=kCLErrorDomain Code=0 "(null)"
So, I have tried solutions like "set location to custom, not to none in simulator" or "allow location simulation in scheme options", nothing helps.