xcode

Xcode archive not showing in Organizer

僤鯓⒐⒋嵵緔 提交于 2021-01-28 02:12:53
问题 I have a React Native app I am trying to publish to the App Store. In XCode 9.4.1 when I go into Product>Archive , the project archives successfully, but the Organizer window does not open. Manually opening the Organizer view Window>Organizer shows the project but there are no archives for the project. Checking in the default Archives directory show the archive was created but is just not showing in the Organizer Some solutions I have tried inlcude In Build Settings setting Skip Install to No

Fatal Error: Duplicate keys of type 'Geocoded Placemark' were found in a dictionary. (Mapbox Geocoder)

旧街凉风 提交于 2021-01-28 01:50:48
问题 I quote: "This usually means either that the type violates Hashable's requirements, or that members of such a dictionary were mutated after insertion." I'm using the Mapbox Geocoder , and when this runtime error occured, my XCode brought me to Thread 1, 0_swift_runtime_on_report and the error occured on the commented line below: libswiftCore.dylib`_swift_runtime_on_report: 0x10fdd2180 <+0>: pushq %rbp //this line right here I've never seen this error before and I don't even begin to know how

Is it possible to return NSManagedObjects as read-only in Core Data?

扶醉桌前 提交于 2021-01-28 01:50:41
问题 I'm using Core Data for caching of server data in a module that I'm writing and would like to be able to enforce that other parts of the application don't modify that data. Is is possible to mark either my instances of NSManagedObject, or the NSManagedObjectContext used to fetch them, as read-only? Since the context is accessible directly from the object, consumers are free to modify the object and call [obj.managedObjectContext save:&errror] . I've seen plenty of references to creating a

Resetting mac application in xcode

…衆ロ難τιáo~ 提交于 2021-01-28 01:41:30
问题 How can I reset a cocoa application in Xcode? When I run my application from Xcode all user default are saved. I would like to reset (delete) my application to create a new one with new settings and run as it would be run first time. I found one way - I change a name of my app to a different one and it is started as new. But how can I do this with an old name? 回答1: You can use the defaults command line tool to remove all the settings, you just need the bundle id of your app (which you can

Documents folder is empty in simulator. Where is my db.sqlite?

梦想的初衷 提交于 2021-01-28 00:58:00
问题 I read that I should find my sqlite db in this path: ~/Library/Application Support/iPhone Simulator/YOUR-IOS-VERSION/Applications/UNIQUE-KEY-FOR-YOUR-APP/Documents But the folder is empty. When I run my app in the simulator I am able to query the db. The db is originally located in the resources folder of my app. I am working with xcode 3.2.6 and OS X 10.6.8 IS there somewhere else where I could look for it? Many thanks. Lapo -(void)insertError:(Frage *) f answer2:(NSString *) answer2 answer3

Terminal stalling on every command due to Xcodebuild

拈花ヽ惹草 提交于 2021-01-28 00:42:13
问题 I just updated Xcode to 11.4 and suddenly my terminal (iTerm 3.3.9) is now very slow. Typing a command works fine, but upon pressing enter I often wait 3-4 seconds to perform a simple task ( cd , git add , etc). When I look at the status bar I notice that xcodebuild is running during the time while I am waiting. I'm assuming that the new Xcode update did something that makes this process longer or needs a setting updated somewhere. I have already tried sudo xcodebuild -license accept and that

dyld: Library not loaded: code signature invalid

痴心易碎 提交于 2021-01-28 00:41:18
问题 I'm trying to build and run an application that uses the AVFoundation framework ... ( I know that this is duplicate, but the solutions posted elsewhere don t help me.) I build successfully but the app crashes when I re-run it from Xcode with the following error: > dyld: Library not loaded: @rpath/libswiftAVFoundation.dylib Referenced from : /private/var/containers/Bundle/Application/B9B93BB2-F55E-4DAE-A720-0F2D22A47278/FaceMarks.app/FaceMarks Reason: no suitable image found. Did find:

iOS Swift - Poor audio quality when using Bluetooth external speaker

旧街凉风 提交于 2021-01-28 00:18:04
问题 Im using iOS app that stream from url (radio app), once im trying to stream from the app through Bluetooth devise like external speaker or car audio system, the audio quality is vert poor and jarring. When playing from the iOS devise itself, everything sounds good (speaker and earphones). override func viewDidLoad() { super.viewDidLoad() // Set AVFoundation category, required for background audio var error: NSError? var success: Bool do { try AVAudioSession.sharedInstance().setCategory(

How to compile OpenCV with extra modules on OS X?

为君一笑 提交于 2021-01-28 00:14:00
问题 I've previously compiled OpenCV 3.0 successfully following this guide, which essentially consists of the following steps: Download all the prerequisites (XCode, Command Line Tools, CMake and OpenCV source) Build static libs by configuring CMake (via gui) with: Uncheck BUILD_SHARED_LIBS Uncheck BUILD_TESTS Add an SDK path to CMAKE_OSX_SYSROOT (if it matters, I used /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk ). Add x86_64 to CMAKE_OSX

Android Studio cannot run the Xcode Simulator

放肆的年华 提交于 2021-01-28 00:11:24
问题 I am trying to simulate my Flutter app with the Xcode iPhone Simulator and I get this error. Before upgrading Android Studio and Xcode it was working fine. Launching lib/main.dart on iPhone X in debug mode... Starting Xcode build... Xcode build done. Failed to build iOS app Error output from Xcode build: ↳ ** BUILD FAILED ** Xcode's output: ↳ error: Multiple commands produce '/Users/User/AndroidStudioProjects/my_app/build/ios/Debug-iphonesimulator/Runner.app/Frameworks/Flutter.framework': 1)