This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[DEBUG] Session could not be started: | |
Error Domain=DTiPhoneSimulatorErrorDomain | |
Code=1 | |
"The application that opened iOS Simulator failed to send all of the required information (sessionUUID, sdkRoot, deviceInfo)." | |
UserInfo=0x7f9c09e35890 | |
{ | |
NSLocalizedDescription=The application that opened iOS Simulator failed to send all of the required information (sessionUUID, sdkRoot, deviceInfo)., |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#import "MUVersionDetector.h" | |
#define CPP_STRING_LINKER_ERRORS 0 | |
#if !CPP_STRING_LINKER_ERRORS | |
typedef std::map<std::string, MUApplicationVersion> MUCacheFolderForVersionMap; | |
typedef MUCacheFolderForVersionMap::const_iterator MUCacheFolderForVersionMap_ci; | |
#endif | |
@implementation MUVersionDetector |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@protocol SCRangeSliderViewDelegate < NSObject > | |
#pragma mark - DataSource methods | |
@required | |
-(NSUInteger)numberOfSectionsForRangeSliderView:( SCRangeSliderView* )view_; | |
-(NSUInteger)maxRangeLengthForSliderView:( SCRangeSliderView* )view_; | |
-(void)didChangeSelectedRangeOfRangeSliderView:( SCRangeSliderView* )view_; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class GetPublicKeyTasks : IRestApiCallTasks<string, Stream, PublicKeyX509Certificate> | |
{ | |
public async Task<string> BuildRequestUrlForRequestAsync( string instanceUrl ) | |
{ | |
return await Task.Factory.StartNew ( () => instanceUrl + "/-/item/v1/-/actions/getpublickey" ); | |
} | |
public async Task<Stream> SendRequestForUrlAsync( string requestUrl ) | |
{ | |
return await this.httpClient.GetStreamAsync(requestUrl); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
byte[] data = null; | |
using (Stream response = await session.DownloadResourceAsync(request)) | |
using (MemoryStream responseInMemory = new MemoryStream()) | |
{ | |
await response.CopyToAsync(responseInMemory); | |
data = responseInMemory.ToArray(); | |
} | |
BeginInvokeOnMainThread(delegate | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
MyWorkspaceAfterPodInstall.xcworkspace | |
| | |
| | |
|---MyApp.xcodeproj | |
|---| | |
|---|--target : MyApp.app | |
|---| | |
|---|--MyLib.xcodeproj | |
|---| | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
dodikk$ /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/simctl list | |
== Device Types == | |
iPhone 4s (com.apple.CoreSimulator.SimDeviceType.iPhone-4s) | |
iPhone 5 (com.apple.CoreSimulator.SimDeviceType.iPhone-5) | |
iPhone 5s (com.apple.CoreSimulator.SimDeviceType.iPhone-5s) | |
iPhone 6 Plus (com.apple.CoreSimulator.SimDeviceType.iPhone-6-Plus) | |
iPhone 6 (com.apple.CoreSimulator.SimDeviceType.iPhone-6) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
git clone <myRepo.git> | |
git checkout <commit hash GUID/tag name/branch name> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// избавляемся от свидетелей | |
while (object.retainCount) { | |
[object release]; | |
} | |
// 146% убиваем объект. Мамом клянусь - да! | |
[object release]; | |
// контрольный в голову | |
[object dealloc]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
tail -f ~/Library/Logs/CoreSimulator/<simulator_id>/system.log | grep <app_name> |