28 Temmuz 2017 Cuma

Android Studio 3.0, Intellij IDEA 2017 klavye kısayol problemi

Mac kullanıcısı olarak normalde "cmd+." olarak kullandığınız "comment with line comment" Android Studio 3.0 ile çalışmıyor mu? Bunun sebebi Intellij IDEA 2017.1 ile gelen bir bug. Keyboard layoutları için yapılan bir geliştirme var (bundan sonra comment line shortcut'ı Türkçe-Q layout'u için cmd + shift + 7 olarak güncellenecek, ancak bug yüzünden olamıyor)

Mac cihazınızda bu problemi aşmak için yapabileceğiniz;

Help -> Edit Custom Properties diyerek açılan idea.properties dosyasına şu satırı eklemeniz :

com.jetbrains.use.old.keyevent.processing=true

Sonrasında idea'yı restart ederek "CMD + ." kısayolunu "comment with line comment" kısayolu için kullanmaya devam edebilirsiniz.

Bug sayfasına ve ilgili workaraound için aşağıdaki linki kullanabilirsiniz:

https://youtrack.jetbrains.com/issue/IDEA-165950#comment=27-2053321

6 Haziran 2017 Salı

Unable to import DeviceCheck, CoreNFC in XCode 9 Beta while using Swift

for import DeviceCheck and Core NFC in XCode 9 you need to use real device as target because there is no x86 version of DeviceCheck and Core NFC frameworks.

Related pages:
Unable to import CoreNFC:
https://forums.developer.apple.com/message/232384#232384

Unable to import in CoreNFC in swift project Xcode 9 beta:
https://stackoverflow.com/questions/44386023/unable-to-import-in-corenfc-in-swift-project-xcode-9-beta

31 Mayıs 2017 Çarşamba

How to solve macOS wifi speed fluctuation, low speed problem?

There may be a too many reason but for me, unknowingly, reason is mDNSResponder daemon.

On macOS Sierra version 10.12.4 (I faced same problem El Capitan, too), when I download something in high speeds, sometimes speed drops to 0kbps and after few seconds it starts to download in 100mbps again. This fluctuation occurs occasionally but when it occurs it stays until I restart the computer.

The reason behind this problem is mDNSResponder daemon. For resolve issue, you can;

- Open Activity Monitor
- Jump to Network tab (for finding mDNSResponder process easily)
- click on mDNSResponder
- click X button which left of to the info button.(Force process to quit)
- exit from the process using "Force Quit" button



Or, if you are a terminal guy,

ps aux | grep mDNSResponder
sudo kill -9 <pid>

14 Temmuz 2016 Perşembe

XCode8 iMessage Swift 2.3 dyld: Symbol not found: __swift_getInitializedObjCClass ,Message.appex/../../Frameworks/libswiftCore.dylib

dyld: Symbol not found: __swift_getInitializedObjCClass
Referenced from: derived_path/PlugIns/Message.appex/Message
Expected In: derived_path/PlugIns/Message.appex/../../Frameworks/libswiftCore.dylib
in derived_path/PlugIns/Message.appex/Message

This problem occurs because of the difference of the target swift versions . You need to set swift version same in the both of the main target and imessage extension target.

Related apple developer forum post : https://forums.developer.apple.com/thread/48740

XCode8 How to use CocoaPod frameworks written in Swift 2.3 (CocoaPods Lagecy Swift)

If you are developing iOS apps with using XCode8 (with Swift 3.x or Swift 2.3) but your CocoaPod project always gets compile error because of your 3rd party targets implemented in Swift 2.3, you need to set SWIFT_VERSION property in build settings to '2.3'.

For dynamic frameworks, this property shown as "Use Legacy Swift Language Version" - Yes, No.

But after every pod update, CocoaPods removes this settings from Pods project and you need to set this settings again, manually.

To acheive this problem, you can use post_install script below in your Podfile :


9 Haziran 2016 Perşembe

Jenkins xcodebuild DVTAssertions: ASSERTION FAILURE DVTFrameworks-10179/DVTFoundation/Multicore/DVTFuture.mm:365

I faced DVTAssertions: ASSERTION FAILED problem today, when I try to build iOS swift project with Jenkins.

To solve problem, I just eject the connected iPhone from Mac's USB port. Still I don't know what is the reason. Problem occured only on Jenkins, not XCode.

Full build log:

xcodebuild[4174:49484]  DVTAssertions: ASSERTION FAILURE in /Library/Caches/com.apple.xbs/Sources/DVTFrameworks/DVTFrameworks-10179/DVTFoundation/Multicore/DVTFuture.mm:365
Details:  Attempted to transition to the failed state, but did not provide an error.

    Progress:    Initial
    Result:      (null)
    Error:       (null)
    Started at:    0   -[DVTFuture init] (in DVTFoundation)
  1   -[DVTFuture initWithBlock:] (in DVTFoundation)
  2   DVTDownloadable_AsyncInstallPackages (in DVTFoundation)
  3   __61-[DVTDownloadableOperationDownload downloadableOperationMain]_block_invoke.284 (in DVTFoundation)
  4   __61-[DVTDownloadableOperationDownload downloadableOperationMain]_block_invoke.310 (in DVTFoundation)
  5   DVTDownloadable_PerformBlockWithAttachedDiskImage (in DVTFoundation)
  6   -[DVTDownloadableOperationDownload downloadableOperationMain] (in DVTFoundation)
  7   -[DVTDownloadableOperation main] (in DVTFoundation)
  8   -[__NSOperationInternal _start:] (in Foundation)
  9   __NSOQSchedule_f (in Foundation)
 10   _dispatch_client_callout (in libdispatch.dylib)
 11   _dispatch_queue_drain (in libdispatch.dylib)
 12   _dispatch_queue_invoke (in libdispatch.dylib)
 13   _dispatch_root_queue_drain (in libdispatch.dylib)
 14   _dispatch_worker_thread3 (in libdispatch.dylib)
 15   _pthread_wqthread (in libsystem_pthread.dylib)
 16   start_wqthread (in libsystem_pthread.dylib)

    Finished at: (null)
Object:   
Method:   -_internalSetState:result:error:
Thread:   {number = 22, name = (null)}
Hints: None
Backtrace:
  0   -[DVTAssertionHandler handleFailureInMethod:object:fileName:lineNumber:assertionSignature:messageFormat:arguments:] (in DVTFoundation)
  1   _DVTAssertionHandler (in DVTFoundation)
  2   _DVTAssertionFailureHandler (in DVTFoundation)
  3   -[DVTFuture _internalSetState:result:error:] (in DVTFoundation)
  4   ___Z39DVTDispatchLockPerformLockedWriterBlockIU8__strongU13block_pointerFU13block_pointerFvvEvEEDTclfp0_EEP15DVTDispatchLockT__block_invoke (in DVTFoundation)
  5   _dispatch_client_callout (in libdispatch.dylib)
  6   _dispatch_barrier_sync_f_invoke (in libdispatch.dylib)
  7   DVTDispatchBarrierSync (in DVTFoundation)
  8   -[DVTDispatchLock performLockedBlock:] (in DVTFoundation)
  9   decltype(fp0()) DVTDispatchLockPerformLockedWriterBlock(DVTDispatchLock*, void () block_pointer () block_pointer __strong) (in DVTFoundation)
 10   -[DVTFuture setState:result:error:] (in DVTFoundation)
 11   -[DVTFuture failWithError:] (in DVTFoundation)
 12   __DVTDownloadable_AsyncInstallPackages_block_invoke_2 (in DVTFoundation)
 13   __DVTDispatchAsync_block_invoke (in DVTFoundation)
 14   _dispatch_call_block_and_release (in libdispatch.dylib)
 15   _dispatch_client_callout (in libdispatch.dylib)
 16   _dispatch_root_queue_drain (in libdispatch.dylib)
 17   _dispatch_worker_thread3 (in libdispatch.dylib)
 18   _pthread_wqthread (in libsystem_pthread.dylib)
 19   start_wqthread (in libsystem_pthread.dylib)
Build step 'Xcode' marked build as failure
Finished: FAILURE

24 Ağustos 2015 Pazartesi

vmware,virtualbox sanal diskleri (vmdk) birden fazla dosyaya bölmek

VMware sanal diskleri .vmdk uzantılı dosyalarda tutuyor. İnternetten doğrudan bir sanal işletim sistemi indirmişseniz ve bunu fat32 ile formatlanmış bir usb bellekte taşıyorsanız, sanal diskinizi birden fazla dosyaya bölmeniz gerekebilir.

Bölme işlemi için kullanacağımız uygulama, vmware-vdiskmanager.exe. Yalnızca VMware player kullanıyorsanız ve bu dosya elinizde yoksa, doğrudan vmware'ın sitesinden ücretsiz olarak bu aracı edinebilirsiniz. En son http://kb.vmware.com/kb/1023856 adresinde attachments kısmındaydı.

2gb boyutunda, kullanıldıkça allocate edilen diskler için :

vmware-vdiskmanager.exe -r old.vmdk -t 1 new.vmdk

2gb boyutunda, önceden allocate edilen diskler için :

vmware-vdiskmanager.exe -r old.vmdk -t 3 new.vmdk

Disk types:
     0                   : single growable virtual disk
     1                   : growable virtual disk split in 2GB files
     2                   : preallocated virtual disk
     3                   : preallocated virtual disk split in 2GB files
     4                   : preallocated ESX-type virtual disk
     5                   : compressed disk optimized for streaming
     6                   : thin provisioned virtual disk - ESX 3.x and above


Not : .exe diyerek işlemi windows altında yaptığımı da açık etmiş oldum. Aynı uygulamanın linux versiyonu da bulunmakta.
-----

Aynı işlem VirtualBox altında;

VBoxManage clonehd old.vmdk new.vmdk --format VMDK --variant Split2G

Komutuyla yapılabiliyor.
Related Posts Plugin for WordPress, Blogger...