xcode8.2

IBOutlet is nil

不羁的心 提交于 2019-12-10 21:16:41
问题 I have created a standard outlet for a view that will hold different information based on the button selected on the previous screen. @IBOutlet weak var labelView: UIView! It shows it is connected in both the story board view and on the code itself, however, every time I get to any reference to the labelView such as: if detail.description == "About" { labelView.backgroundColor = UIColor.red } Then the app crashes out with: fatal error: unexpectedly found nil while unwrapping an Optional value

XCode 8.2.1 Cannot add folder reference

主宰稳场 提交于 2019-12-10 18:05:00
问题 My XCode 8.2.1 doesn't let me add a folder reference. What I have tried: I make a right click on the folder called "Unity", then I click on "Add files to Project...", under options I check "Create folder references". My folder is added as a red file instead of a blue folder how it would be normally. I tried changing the 'type' of the file to 'folder' under "Identity and Type", then it becomes a light blue folder, but there are no files inside and I can't seem to put them inside in any way,

CocoaPods “No Such Module” Error: [closed]

会有一股神秘感。 提交于 2019-12-04 07:14:45
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 2 years ago . I am getting a "No Such Module" error in Xcode using CocoaPods. I tried everything else I could find on StackOverflow. How do I fix this problem? 回答1: Try to open .xcworkspace instead .xcproject 回答2: I added the following to my Framework Search Paths: NOTE: the RECURSIVE option is ENABLED! Fair warning: this may

iOS Simulator video recording with 'xcrun simct' give error

吃可爱长大的小学妹 提交于 2019-12-04 05:15:10
问题 While checking Xcode 8.2 changes I found that now we can record simulator using Terminal. So I am trying to record video from iOS simulator as describe in this Apple Document. Taking a Screenshot or Recording a Video Using the Command Line Command: xcrun simctl io booted recordVideo demoVideo.mp4 Error: 2016-12-20 15:44:27.206 simctl[6434:984477] *** Assertion failure in +[SimDisplayVideoWriter videoWriter], /BuildRoot/Library/Caches/com.apple.xbs/Sources/CoreSimulator/CoreSimulator-338.16

All the alert dialog message and textField have been changed to single line. Please checkout the image

邮差的信 提交于 2019-12-04 01:07:26
问题 Previously all the dialog and textField are working well. But not I do not know how these TextFields are suddenly changed to single line with triple. (Like some Message here...) let alert = UIAlertController(title: "Cancel Booking !!", message: "Are you sure you want to cancel your booking?", preferredStyle: .alert) alert.addAction(UIAlertAction(title: "No", style: .default, handler: nil)) alert.addAction(UIAlertAction(title: "Yes", style: .default, handler: self.cancelMessageDialog)) self

All the alert dialog message and textField have been changed to single line. Please checkout the image

对着背影说爱祢 提交于 2019-12-01 03:59:44
Previously all the dialog and textField are working well. But not I do not know how these TextFields are suddenly changed to single line with triple. (Like some Message here...) let alert = UIAlertController(title: "Cancel Booking !!", message: "Are you sure you want to cancel your booking?", preferredStyle: .alert) alert.addAction(UIAlertAction(title: "No", style: .default, handler: nil)) alert.addAction(UIAlertAction(title: "Yes", style: .default, handler: self.cancelMessageDialog)) self.present(alert, animated: true, completion: nil) I had the same problem and solved it after 3 days and

How to swipe a View controller over the top of another view controller?

梦想与她 提交于 2019-11-30 21:14:14
问题 I have a table view controller and another view controller. Now my requirement is that i need to swipe the table view controller half over the another view controller when i swipe the view controller. The image i can show is like this: Is it possible to achieve this by using the Swipegesture . If possible how can i do this in Swift3? 回答1: While there are libraries out there to do this for you, if you are going to do this yourself, the basic idea is that you can create a "swipe from edge"

Use Legacy Swift Language Version - Xcode 8.2

折月煮酒 提交于 2019-11-30 11:57:12
问题 After updating to Xcode 8.2 the compiler throws one error for my App target: “Use Legacy Swift Language Version” (SWIFT_VERSION) is required to be configured correctly for targets which use Swift. Use the [Edit > Convert > To Current Swift Syntax…] menu to choose a Swift version or use the Build Settings editor to configure the build setting directly. But have it set to No in all targets I have. Tried to remove Derived Data, clean project dir, restart Xcode. Nothing helps. Anyone figure it

Use Legacy Swift Language Version - Xcode 8.2

天大地大妈咪最大 提交于 2019-11-30 01:48:36
After updating to Xcode 8.2 the compiler throws one error for my App target: “Use Legacy Swift Language Version” (SWIFT_VERSION) is required to be configured correctly for targets which use Swift. Use the [Edit > Convert > To Current Swift Syntax…] menu to choose a Swift version or use the Build Settings editor to configure the build setting directly. But have it set to No in all targets I have. Tried to remove Derived Data, clean project dir, restart Xcode. Nothing helps. Anyone figure it out? // Edited Just to be sure: I have set to ALL my targets Use Legacy Swift Language Version to No and

Xcode 8.2 Code Completion Not Working

帅比萌擦擦* 提交于 2019-11-28 05:11:46
For some reason, in Xcode 8.2 my code completion has stopped working. I have cleaned my product, restarted Xcode, restarted my computer, and deleted the derived data, and still no luck. I have submitted this to Apple Support. Has anyone run into this before and been able to fix it? Code completion also stopped working for me in Xcode 8.2.1, and no amount of clean-up, derived data throwaway or restart fixed it. After a while, I realized code completion was only broken within the extension scope I was working on. If typed manually, the code would be correctly highlighted and would compile fine,