xcode9

Error when trying to upload Xcode project: Please update Xcode and rebuild your app

巧了我就是萌 提交于 2019-12-12 10:19:51
问题 I have an Xcode project built with Xcode 7.3.1 (7D1014) and Swift. After an urgent bugfix I need to upload the new ipa but I'm getting the following error message: ERROR ITMS-90725: "SDK Version Issue. This app was built with the iOS '9.3' SDK. All iOS apps submitted to the App Store must be built with the iOS '11.0' SDK or later, included in Xcode [9.0] or later. Please update Xcode and rebuild your app." Because it's an urgent update, I haven't time to update, convert and fix all error

UIRefreshControl() in iOS 11 Glitchy effect

六月ゝ 毕业季﹏ 提交于 2019-12-12 08:24:26
问题 Every time I pull to refresh the TableView, the UIRefreshControl appears to be glitchy. Below is the code I am using. Any Ideas? In AppDelegate: UINavigationBar.appearance().isTranslucent = false UINavigationBar.appearance().barTintColor = UIColor.red UINavigationBar.appearance().tintColor = UIColor.white In UITableViewController: self.tableView.refreshControl = UIRefreshControl() if #available(iOS 11.0, *) { self.navigationController?.navigationBar.prefersLargeTitles = false } else { //

Swift 4 Using KVO to listen to volume changes

☆樱花仙子☆ 提交于 2019-12-12 08:21:58
问题 I just updated to Swift 4 and Xcode 9 and got a (swiftlint) warning for the following code telling me that I should use KVO now: Warning: (Block Based KVO Violation: Prefer the new block based KVO API with keypaths when using Swift 3.2 or later. (block_based_kvo)) The old code: override func observeValue(forKeyPath keyPath: String?, of object: Any?, change: [NSKeyValueChangeKey : Any]?, context: UnsafeMutableRawPointer?) { if keyPath == "outputVolume"{ guard let newKey = change?

Exclude Pods when cleaning Xcode 9 project [duplicate]

我怕爱的太早我们不能终老 提交于 2019-12-11 18:33:55
问题 This question already has answers here : Any way to clean only current Xcode project but not Cocoapods dependencies? (2 answers) Closed last year . I am wondering if there is a way to exclude your Pods in a Swift 4, Xcode 9 project when performing a Product -> Clean operation. In rare cases when I try to build I get errors like file too small for architecture x86_64 Easiest way to fix this is doing a full clean, according to this question. This works, but when I have a lot of Pods included in

Facebook integration IOS 11

妖精的绣舞 提交于 2019-12-11 17:29:34
问题 I've been trying to integrate Facebook with an IOS app using cocoapods (Xcode 9.0, IOS 11). After installing pods and adjusting the info.plist with all fb info, I got stuck on importing FacebookCore (it won't work with FBSDKCoreKit, FacebookLoginKit, FBSDKLoginKit also). Xcode issues the "No such module" warn. More than that, if I choose to run the project (without importing anything), it issues more than 20 warns, including Bolts framework, FBSDKCoreKit, FacebookCore etc.. Does anyone know

Xcode 9 compiled app with unusual behaviour

隐身守侯 提交于 2019-12-11 17:08:23
问题 I'm failing in creating a simple macSO app with Xcode 9 because of a very ... and I mean very strange behaviour. I have two views with simple layers to draw different background colours. Like this: When I run the app, without changing anything, after (usually) the third run in a row, the views disappear ... literally. And the window looks like this: Here is a test project: https://github.com/ivailon/test13 Furthermore - if I start executing the already build app, again the views sometimes

Unable to Run Application on Device “dyld: Library not loaded”

北城以北 提交于 2019-12-11 14:39:29
问题 The Xcode 9.2 I was unable to run my application on my device, I can run it only on simulator and this the same for all my project ( Objective - C / Swift ) Some of my project runs with cocoapods and some without but also not running on Devices. I tried everything . • Deleted All Xcode Verisons • Cleared Cache • Cleared DerivedData • Restarted my laptop • Update OS • Installed a fresh version of Xcode 9.2 from the app store • Delete /Library/Preferences/com.apple.dt.Xcode.plist • Delete ~

Upload multiple images to FTP server in iOS

假装没事ソ 提交于 2019-12-11 07:36:46
问题 I'm developing an application in swift 4. In it, I want to upload multiple images to FTP server. I have tried to do with https://github.com/Constantine-Fry/rebekka but could not build getting error saying Xcode 9 does not support building or migrating Swift 2.x targets. Also tried with https://gist.github.com/Nirma/fb9991be776107d17fdcd6ed2aa02876 . But some of the APIs are deprecated. Apple sample project is in objective C. Can anybody please help me to go forward in this case? 回答1: I've

Header file not found in Bridging Header

大城市里の小女人 提交于 2019-12-11 06:26:28
问题 I've looked through a number posts and cannot find a solution to this problem. I installed the MMLanScan Objective C library into in my pod file successfully. Then I created a bridging header file in my project directory #ifndef BridingHeader_h #define BridingHeader_h #import "MMLANScanner.h" #import "LANProperties.h" #import "PingOperation.h" #import "MMLANScanner.h" #import "MACOperation.h" #import "MacFinder.h" #import "MMDevice.h" #endif I also set the header file path in my project's

Xcode 9 not linking/indexing correctly

青春壹個敷衍的年華 提交于 2019-12-11 06:26:20
问题 Create an App, Single View is ok, with Unit Tests. In the App Target: Create a Class with a property and a function. Create another class and function. Write some code to reference class 1 property. Autocomplete not showing the property or function, but, if the property/function is written correctly, it is flagged by code sense and compiles. [NOTE: I've since worked this out. It would seem I have to manually save changes to a file and then AC works - I'm sure I didn't need to do this in Xcode