xcode8

How do I open another window in macOS in Swift with Cocoa

﹥>﹥吖頭↗ 提交于 2020-03-18 11:36:05
问题 I am working on a macOS app that presents a list of customer master records in a table view. Double-clicking a row in the table view should open a new window where the user can view and edit the customer information. This is an Xcode 8.3.3 project using a storyboard and Swift. It is not a document or core data app. I have the main window working up to the point where the table view is displaying the records correctly and the associated view controller is receiving the double-click events and

Xcode 8: Compile with iOS 9.3 base SDK?

冷暖自知 提交于 2020-02-22 14:30:55
问题 I upgraded my iOS app to Swift 3.0 in Xcode 8.0 beta (8S128d). I thought it was all ready to go and uploaded it to iTunes Connect. When I clicked "Submit for Review", it gave me a list of 26 errors, one for each embedded framework, such as: Invalid sdk value. The value provided for the sdk portion of LC_VERSION_MIN_IPHONEOS in MyApp.app/Frameworks/libswiftFoundation.dylib is 10.0 which is greater than the maximum allowed value of 9.3.2. And one final error: New apps and app updates must be

Xcode 8: Compile with iOS 9.3 base SDK?

偶尔善良 提交于 2020-02-22 14:30:19
问题 I upgraded my iOS app to Swift 3.0 in Xcode 8.0 beta (8S128d). I thought it was all ready to go and uploaded it to iTunes Connect. When I clicked "Submit for Review", it gave me a list of 26 errors, one for each embedded framework, such as: Invalid sdk value. The value provided for the sdk portion of LC_VERSION_MIN_IPHONEOS in MyApp.app/Frameworks/libswiftFoundation.dylib is 10.0 which is greater than the maximum allowed value of 9.3.2. And one final error: New apps and app updates must be

Xcode 8: Compile with iOS 9.3 base SDK?

风格不统一 提交于 2020-02-22 14:30:13
问题 I upgraded my iOS app to Swift 3.0 in Xcode 8.0 beta (8S128d). I thought it was all ready to go and uploaded it to iTunes Connect. When I clicked "Submit for Review", it gave me a list of 26 errors, one for each embedded framework, such as: Invalid sdk value. The value provided for the sdk portion of LC_VERSION_MIN_IPHONEOS in MyApp.app/Frameworks/libswiftFoundation.dylib is 10.0 which is greater than the maximum allowed value of 9.3.2. And one final error: New apps and app updates must be

Xcode 8 Storyboards Blank

↘锁芯ラ 提交于 2020-02-16 04:09:42
问题 For some reason in Xcode 8.1, all my storyboards are now blank, with boxes around where the content used to be: I tried cleaning, deleting the Derived Data folder, and changing the size to Freeform but nothing has worked. How do I fix this? 回答1: Try these: Delete your derived data. Close xcode and clean, build again. If option 1 not work then, Copy your project to another directory/folder. Close Xcode, open project from new directly and clean, build. 来源: https://stackoverflow.com/questions

Xcode 8 Storyboards Blank

不想你离开。 提交于 2020-02-16 04:04:56
问题 For some reason in Xcode 8.1, all my storyboards are now blank, with boxes around where the content used to be: I tried cleaning, deleting the Derived Data folder, and changing the size to Freeform but nothing has worked. How do I fix this? 回答1: Try these: Delete your derived data. Close xcode and clean, build again. If option 1 not work then, Copy your project to another directory/folder. Close Xcode, open project from new directly and clean, build. 来源: https://stackoverflow.com/questions

Found an unexpected mach-o header code in Xcode?

情到浓时终转凉″ 提交于 2020-02-13 21:04:42
问题 So the error I'm having is this : "found an unexpected mach-o header code" Everything I found online told me to check my target build phases and see what doesn't belong in the Copy Bundle Resources. What doesn't belong here because I feel everything is in the right spot. UPDATE : I removed everything in the list and I still encounter this error :( 回答1: If you are using Cocoapods, you should add this to the end of your Podfile: post_install do |installer| installer.pods_project.targets.each do

Found an unexpected mach-o header code in Xcode?

喜欢而已 提交于 2020-02-13 21:04:25
问题 So the error I'm having is this : "found an unexpected mach-o header code" Everything I found online told me to check my target build phases and see what doesn't belong in the Copy Bundle Resources. What doesn't belong here because I feel everything is in the right spot. UPDATE : I removed everything in the list and I still encounter this error :( 回答1: If you are using Cocoapods, you should add this to the end of your Podfile: post_install do |installer| installer.pods_project.targets.each do

Core Data entities missing when tested on device

不羁的心 提交于 2020-02-07 19:52:52
问题 I am trying to make a simple app using Xcode/swift. I am able to save and retrieve data in core data when using the simulator, however when I tested the app using an actual iPhone device my existing data are missing. i don't know why this is, and what to do about it. I am new in iOS development, thanks in advance. 回答1: This is expected behavior, because youк needed data stored in simulator memory on the mac, and you should copy that database file from simulator to Supporting Files in main

cannot build project with xcode 8 beta 6

徘徊边缘 提交于 2020-01-26 01:20:23
问题 I am getting following error after I add a library via carthage - library name compiled with older version of Swift language (2.0) than previous files (3.0) for architecture x86_64 I have tried it with Argo library. (https://github.com/thoughtbot/Argo) I have selected the correct xcode version using xcode-select utility. What could be the problem? Any help is greatly appreciated Thanks! 回答1: From what I learned, looks like you can't have libraries written in different versions of Swift. In my