xcode7

Is there a way to reset the app between tests in Swift XCTest UI?

不问归期 提交于 2019-12-17 08:05:19
问题 Is there an API call within XCTest that I can put into the setUP() or tearDown() to reset the app between tests? I looked in the dot syntax of XCUIApplication and all I saw was the .launch() OR is there a way to call a shell script in Swift? I could then call xcrun in-between test methods to reset the simulator. 回答1: You can add a "Run Script" phase to build phases in your test target to uninstall the app before running unit tests against it, unfortunately this is not between test cases,

Is there a way to reset the app between tests in Swift XCTest UI?

早过忘川 提交于 2019-12-17 08:03:15
问题 Is there an API call within XCTest that I can put into the setUP() or tearDown() to reset the app between tests? I looked in the dot syntax of XCUIApplication and all I saw was the .launch() OR is there a way to call a shell script in Swift? I could then call xcrun in-between test methods to reset the simulator. 回答1: You can add a "Run Script" phase to build phases in your test target to uninstall the app before running unit tests against it, unfortunately this is not between test cases,

How do I xcodebuild a static library with Bitcode enabled?

你说的曾经没有我的故事 提交于 2019-12-17 08:00:21
问题 Xcode 7 introduces Bitcode, which is some sort of LLVM intermediate binary that means Apple's servers can recompile my app for different architectures without my involvement. At Lookback, I distribute a static archive framework with our library. It seems that when you build with anything but a "Build & Archive", bitcode is not actually emitted into my library, and anyone who links with my library in their app and tries to do a Build & Archive with Bitcode enabled will get one of two warnings:

Why Xcode 7 shows *.tbd instead of *.dylib?

倾然丶 夕夏残阳落幕 提交于 2019-12-17 07:01:11
问题 Xcode 7 In Target > BuildPhases > Link Binary With Libraries > tap + button When choosing frameworks to add, you cannot find *.dylib, you'll see *.tbd instead. What is the reason for this? **For people who need dylib, follow from this post Choose "Add other" Once in the file selection window do "CMD"+Shift+G (Go to folder) & type /usr/lib/ From /user/lib you can find the *.dylib files 回答1: I've scoured Google but the only thing I can find so far is the following quote from the Apple developer

iOS9 - This application is modifying the autolayout engine from a background thread — where?

别来无恙 提交于 2019-12-17 06:38:51
问题 For searching, the error message is: This application is modifying the autolayout engine from a background thread, which can lead to engine corruption and weird crashes. This will cause an exception in a future release. I know this means some UIKit code is called from a background thread, and I know the solution is to wrap the code in dispatch_async(dispatch_get_main_queue(), ^(void){ <code> }); My problem is locating where to do that, as none of the printed stack traces reference my app code

ITMS-90535 Unable to publish iOS app with latest Google Signin SDK

孤人 提交于 2019-12-17 06:34:15
问题 I'm using xcode 7 GM seed and installed latest Google Signin SDK through cocoapods pod "Google/SignIn . I get the attached error when I try to publish my app to apple app store. Help!! Here are the detailed versions of Google SDK pods - Google/Core (1.0.7): - GoogleNetworkingUtilities (~> 1.0) - GoogleSymbolUtilities (~> 1.0) - GoogleUtilities (~> 1.0) - Google/SignIn (1.0.7): - Google/Core - GoogleSignIn (~> 2.0) - GoogleAppUtilities (1.0.0): - GoogleSymbolUtilities (~> 1.0) -

ITMS-90535 Unable to publish iOS app with latest Google Signin SDK

守給你的承諾、 提交于 2019-12-17 06:34:05
问题 I'm using xcode 7 GM seed and installed latest Google Signin SDK through cocoapods pod "Google/SignIn . I get the attached error when I try to publish my app to apple app store. Help!! Here are the detailed versions of Google SDK pods - Google/Core (1.0.7): - GoogleNetworkingUtilities (~> 1.0) - GoogleSymbolUtilities (~> 1.0) - GoogleUtilities (~> 1.0) - Google/SignIn (1.0.7): - Google/Core - GoogleSignIn (~> 2.0) - GoogleAppUtilities (1.0.0): - GoogleSymbolUtilities (~> 1.0) -

iOS 9 new feature Free Provisioning (Run your app on a device, just with your Apple ID, without Apple developer membership)

我怕爱的太早我们不能终老 提交于 2019-12-17 04:56:08
问题 Would like to know about the new feature Free Provisioning introduced in iOS9 & Xcode 7. How Apple is now achieving that, as before we knew our device ids were enrolled in the profiles and hence it was possible to deploy the app on devices. Now only with Apple ID how the things in the background are achieved, also is there any restrictions on how many number of devices I can add my build with Free Provisioning. Any help is greatly appreciated thanks... 回答1: 1. How it works? Apple Ref : How to

“Application windows are expected to have a root view controller at the end of application launch” error when running a project with Xcode 7, iOS 9

不羁的心 提交于 2019-12-17 02:35:12
问题 After running function - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions there is a crash: Assertion failure in -[UIApplication _runWithMainScene:transitionContext:completion:], /BuildRoot/Library/Caches/com.apple.xbs/Sources/UIKit_Sim/UIKit- *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', `enter code here`reason: 'Application windows are expected to have a root view controller at the end of

What does ENABLE_BITCODE do in xcode 7?

守給你的承諾、 提交于 2019-12-17 01:33:46
问题 I have a problem with the embedded bitcode term. What is embedded bitcode? When to enable, ENABLE_BITCODE in new Xcode? What happens to the binary when enabled, ENABLE_BITCODE in Xcode 7? 回答1: Bitcode refers to to the type of code: "LLVM Bitcode" that is sent to iTunes Connect. This allows Apple to use certain calculations to re-optimize apps further (e.g: possibly downsize executable sizes). If Apple needs to alter your executable then they can do this without a new build being uploaded.