xcode7

Set deployment target for CocoaPods's pod

我怕爱的太早我们不能终老 提交于 2019-12-17 21:53:08
问题 I use CocoaPods to manage dependencies in my project. I've written Podfile: target 'MyApp' do platform :ios, '8.0' # Uncomment this line if you're using Swift or would like to use dynamic frameworks #use_frameworks! # Pods for MyApp pod 'KeepLayout', :git => 'https://github.com/iMartinKiss/KeepLayout', :tag => 'v1.6.0' pod 'EasyMapping' target 'MyAppTests' do inherit! :search_paths # Pods for testing end target 'MyAppUITests' do inherit! :search_paths # Pods for testing end end This file

Xcode Crash Organizer does Not Symbolicate .xccrashpoint Files

吃可爱长大的小学妹 提交于 2019-12-17 18:06:39
问题 The new Xcode 7 "Crashes" tab in the organizer shows a handful of crashes from the AppStore for my app. According to the documentation, there should be a stack trace. However, none of the 6 crashes have symbolicated stack traces: I've tried clicking "Open in Project" but it's just as useless: Of course, I included the dsym and debug info when I submitted to the store. I still have the submission build in my organizer, so the dsyms are still present on my machine. How can I get a proper stack

Xcode 7 UITests with localized UI

随声附和 提交于 2019-12-17 17:29:58
问题 In my App I'm using NSLocalizedString to localize my app. Now I want to switch to UITests and habe Testcode like this: [tabBarsQuery.buttons["particiants"] tap]; This works for English but fails for other languages. [tabBarsQuery.buttons[NSLocalizedString("PARTICIPANTS",comment:nil)] tap]; Fails - probably because Localizable.strings is in another bundle. How can I test a localized app? 回答1: I wanted to actually test the content of UI features and not just their existence, so setting a

How Do I Create a Development Framework In iOS Including Swift?

旧街凉风 提交于 2019-12-17 15:59:08
问题 My goal in this was to create an iOS framework that incorporates both Swift and Objective-C that I could use in my development projects. The nature of this framework is that the framework itself is undergoing development. So, it was important that each time I build a project using this framework (I'll call projects using the framework "using" projects for lack of a better term), I wanted to make sure the framework itself was re-built. I wanted this to be a framework because I have a few using

Xcode UI test - UI Testing Failure - Failed to scroll to visible (by AX action) when tap on Search field "Cancel' button

二次信任 提交于 2019-12-17 15:20:05
问题 I am trying to dismiss the search field by tapping 'Cancel' button in search bar. The test case is failing to find the cancel button. It was working fine in Xcode 7.0.1 I have added predicate to wait for button to appear. The test case is failing when we tap of "cancel" button let button = app.buttons[“Cancel”] let existsPredicate = NSPredicate(format: "exists == 1") expectationForPredicate(existsPredicate, evaluatedWithObject: button, handler: nil) waitForExpectationsWithTimeout(5, handler:

“Could not find Developer Disk Image”

筅森魡賤 提交于 2019-12-17 10:33:23
问题 Recently I've been getting the error: "Could not find Developer Disk Image" I think this happens since I have updated iOS to 9.1 on the iPhone. How can I fix the problem and make Xcode support iOS 9.1 devices? 回答1: 1) I have experienced same issue, my Xcode version was 7.0.1 , and I updated my iPhone to version 9.2 , then upon using Xcode, my iPhone was shown in the section of unavailable device. Just like in image below: 2) But then I somehow managed to select my iPhone by clicking at

UITableView Empty with iOS 9 beta 5 update

妖精的绣舞 提交于 2019-12-17 09:56:43
问题 After updating to Xcode 7 and then the iOS 9 beta 5 on my iPhone, none of my UITableViews are displaying data, except one. They are all downloading information from my Parse database, and the one that works, is downloading everything perfectly for one section of the table, but not the other. The other 3 table views download the information, and calculate the correct number of rows, however nothing is being displayed. I tried just displaying static text for all cells, however it is not even

Is it possible to disable ATS in iOS 9 just for debug environment?

女生的网名这么多〃 提交于 2019-12-17 09:46:15
问题 I'm working on a development environment without HTTPS setup. Is it possible to automatically disable ATS just for the development (debug) mode? 回答1: My solution is to keep ATS disable option at the default NO value and add a New Run Script Phase to change it in the app bundle's Info.plist when building the app. This is the script: #Disables ATS in debug builds. INFOPLIST="${TARGET_BUILD_DIR}"/"${INFOPLIST_PATH}" case "${CONFIGURATION}" in "Release"|"Adhoc") /usr/libexec/PlistBuddy -c "Set

Xcode 7 supporting watch OS1 and OS2

為{幸葍}努か 提交于 2019-12-17 09:39:48
问题 I have been fiddling with Xcode 7 for sometime now, I get to know that it supports only Swift 2 and there is no way to support Swift 1.0 or 1.2 in Xcode 7. This is fine. Now coming to WatchOS, can I have two targets one for WatchOS1 and one for WatchOS2 separately in Xcode 7 so that I can support for both?? I was looking into the deployment target setting in the build settings of both the watch target and the iOS app target but I could see only WatchOS2 in the list so Can I support two

Facebook Login - iOS 9 - Without Safari

南笙酒味 提交于 2019-12-17 09:23:20
问题 It worked fine to login with logInWithReadPermissions in iOS 8, but as soon after the update to iOS 9 it keeps opening Safari or a modal UIWebView. Does anyone have the same issue? FBSDKLoginManager *login = [[FBSDKLoginManager alloc] init]; [login setLoginBehavior:FBSDKLoginBehaviorNative]; [login logInWithReadPermissions:@[@"public_profile",@"email"] fromViewController:nil handler:^(FBSDKLoginManagerLoginResult *result, NSError *error) { NSLog(@""); }]; 回答1: Seems there's no way to get the