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
Related Posts Plugin for WordPress, Blogger...