xcode7

How to create IOS .IPA file and share it, using FREE Apple ID?

拜拜、爱过 提交于 2019-12-10 11:45:39
问题 First, this is not a duplicate of This Question as my question is about distribution not creating of IPA file. I have developed an iOS application using Xcode 7 in OS X 10.11 and I was trying to create and publish a .IPA file for it, enabling others to be able to download and install it on their iPhones. But I have tried numerous ways and haven't had any success. I have a FREE apple ID account and although I have joined the development program I have not purchased it. I have set the "code

XCode7 UITests how to test screen edge pan gestures?

喜夏-厌秋 提交于 2019-12-10 11:24:46
问题 I have the following gesture recognizer in my app. I've looked at xCode7 UI and see that it has swipe up/down/left/right, but no pan or edge pan gestures. How can one test or initiate screen edge pan gesture for UITesting purposes? UIScreenEdgePanGestureRecognizer *leftEdgeGesture = [[UIScreenEdgePanGestureRecognizer alloc] initWithTarget:self action:@selector(show)]; leftEdgeGesture.edges = UIRectEdgeLeft; leftEdgeGesture.delegate = self; [self.view addGestureRecognizer:leftEdgeGesture]; 回答1

dyld: Symbol not found: ___NSDictionary0__ when using google ServiceGenerator binary with discovery docs in XCode 7 & iOS target 9.0

不想你离开。 提交于 2019-12-10 10:12:17
问题 I'm trying to generate client API code from Google backend using Google serviceGenerator with discovery document as input. Following is the exact command : /Users/raja/Library/Developer/Xcode/DerivedData/ServiceGenerator-dycdiotwolfqnaelznaucewpppjr/Build/Products/Debug/ServiceGenerator ./userRecordApi-v1-rpc.discovery --outputDir ~/API I however, see the following error dyld: Symbol not found: ___NSDictionary0__ Referenced from: /Users/raja/Library/Developer/Xcode/DerivedData

Cannot subscript a value of type [CLPlacemark] with an index type int

狂风中的少年 提交于 2019-12-10 09:58:43
问题 I would like to retrieve the current location. I work with on swift Xcode 7. I looked PLUSIEUR tutorials, but every time they use the same method. Here is my code and my error: ! Error : Cannot subscript a value of type [CLPlacemark] with an index type int import UIKit import CoreLocation class ViewController: UIViewController, CLLocationManagerDelegate { let LocationManager = CLLocationManager() override func viewDidLoad() { super.viewDidLoad() // Do any additional setup after loading the

Protocol extension method dispatch in Swift 2.0

喜夏-厌秋 提交于 2019-12-10 04:32:36
问题 I'm facing a problem regarding protocols methods dispatch. I have a class hierarchy that looks like that: protocol E { func test() } extension E { func test() { print("jello") } } class A: E { } class B: A { func test() { print("hello") } } But when I call test on an instance of class B statically forced to be typed A , "jello" gets printed, not "hello". let b: A = B() // prints "jello" not "hello" b.test() My understanding is that test method printing "jello" gets "integrated" into instances

Xcode 7 build failed: ld: library not found for -lGoogleAnalyticsServices

半世苍凉 提交于 2019-12-10 04:08:22
问题 Every time when I open my app with Xcode I get this error: ld: library not found for -lGoogleAnalyticsServices clang: error: linker command failed with exit code 1 (use -v to see invocation) Then I need to unmark the target on the libGoogleAnalyticsServices.a file and mark it on again. After the uncheck/check of the target the app runs normally... I get 2 other warning when this happens: ld: warning: directory not found for option '-L/Users/vision/Documents/Apps/Mijn Cijfers/Mijn' ld: warning

iOS localization is broken with the upgrade iOs 9 + Xcode 7

痞子三分冷 提交于 2019-12-10 03:45:44
问题 I localized my app in Italian and English, using the Localizable.strings file and the NSLocalizedString macro . I also enabled base localization . Everything works fine in the simulator and on devices with iOS 8, but on iOS 9 the app is always in english, even on devices with the italian language selected as default in the iPhone settings. Does iOS 9 changes something with localization? Here's a screenshot of the Xcode localization settings 1 And of the device used for testing Thanks in

Xcode hangs on “Compiling Swift source files”

混江龙づ霸主 提交于 2019-12-10 01:04:38
问题 I'm running Xcode 7.3.1. When building my Swift based project, it hangs on "Compiling Swift source files". I've tried various combination of deleting DerivedData , clean, run, restarting Xcode, restarting OS X, none seem to work. Any ideas? 回答1: I made a class extend itself. That also causes Swift compiler to get stuck in a loop without error: class X: X 回答2: Thanks for all commentors' suggestions. I narrowed it down to a map 's closure referencing a property that I had removed. Example: var

The Selection is Not a Type that Can Be Renamed Xcode 7

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-10 00:38:28
问题 Trying to rename a class by selecting the class name ( ViewController ) after @interface : @interface ViewController : UIViewController Right clicking, selecting Refactor -> Rename results in the following error alert window: This worked just fine in Xcode 6, is this some sort of regression? I tried this solution for Xcode 4 to no avail. Anyone know of any work arounds? 回答1: Yes, refactoring is badly broken in Xcode 7. I have found similar problems when trying to rename properties, methods

Background audio not working with Xcode 7

会有一股神秘感。 提交于 2019-12-09 23:14:41
问题 I have a radio player app, which streams audio from online radio stations. I have background modes enabled, like so: When I built the app with Xcode 6, it worked on all devices and all iOS versions up to iOS 8. It even worked on an iPhone 6 that was later updated to iOS 9. Since then, I have updated to Xcode 7 and now when I build and run it on any device with any iOS version the background audio does not work, it just stops when the app goes to background. Any ideas? 回答1: In your plist make