Closed ksmandersen closed 9 years ago
Awesome stuff! Thx!
@ksmandersen Feel free to make a pull-request already, just to have initial testable support for CocoaPods. I wouldn't make a difference for current use anyhow, right?
@ksmandersen
I've tried to use CocoaPods for the example project. See current work in progress here https://github.com/duemunk/Async/tree/feature/CocoaPodsByExample.
I have the following issues.
CodeSign /Users/duemunk/Library/Developer/Xcode/DerivedData/Build/Products/Debug/AsyncExample\ OS\ X.app
cd /Users/duemunk/Gits/Async/AsyncExample
export CODESIGN_ALLOCATE=/Applications/Xcode-Beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/codesign_allocate
Signing Identity: "-"
/usr/bin/codesign --force --sign - /Users/duemunk/Library/Developer/Xcode/DerivedData/Build/Products/Debug/AsyncExample\ OS\ X.app
/Users/duemunk/Library/Developer/Xcode/DerivedData/Build/Products/Debug/AsyncExample OS X.app: code object is not signed at all
In subcomponent: /Users/duemunk/Library/Developer/Xcode/DerivedData/Build/Products/Debug/AsyncExample OS X.app/Contents/Frameworks/Async.framework
Command /usr/bin/codesign failed with exit code 1
I don't know if I have done something wrong, or if it is related to this https://github.com/CocoaPods/CocoaPods/pull/2801.
I can't run the test on the device. It hangs and prints the following:
* thread #1: tid = 0x17fb8, 0x0000000193460e7c libsystem_kernel.dylib`mach_msg_trap + 8, queue = 'com.apple.main-thread', stop reason = signal SIGSTOP
* frame #0: 0x0000000193460e7c libsystem_kernel.dylib`mach_msg_trap + 8
frame #1: 0x0000000193460cf8 libsystem_kernel.dylib`mach_msg + 72
frame #2: 0x0000000182555ed0 CoreFoundation`__CFRunLoopServiceMachPort + 200
frame #3: 0x0000000182553e24 CoreFoundation`__CFRunLoopRun + 940
frame #4: 0x00000001824810a4 CoreFoundation`CFRunLoopRunSpecific + 396
frame #5: 0x000000018b6235a4 GraphicsServices`GSEventRunModal + 168
frame #6: 0x0000000186db63c0 UIKit`UIApplicationMain + 1488
frame #7: 0x00000001000ce810 AsyncExample iOS`top_level_code + 76 at AppDelegate.swift:12
frame #8: 0x00000001000ce850 AsyncExample iOS`main + 48 at AppDelegate.swift:0
frame #9: 0x0000000193362a08 libdyld.dylib`start + 4
thread #2: tid = 0x17fe2, 0x0000000193460c94 libsystem_kernel.dylib`kevent64 + 8, queue = 'com.apple.libdispatch-manager'
frame #0: 0x0000000193460c94 libsystem_kernel.dylib`kevent64 + 8
frame #1: 0x0000000193348980 libdispatch.dylib`_dispatch_mgr_invoke + 276
frame #2: 0x000000019333b3b4 libdispatch.dylib`_dispatch_mgr_thread + 52
As of the latest CocoaPods release everything works fine.
I added a podspec to my fork of the repo https://github.com/ksmandersen/Async.
I doesn't lint yet because RC versions of CocoaPods are not publisehd via RubyGems. To use Swift cocoapods you must install CocoaPods from source http://guides.cocoapods.org/using/unreleased-features.
I will hold off on a Pull Request support is official for swift