xcode - Core Foundation Framework Error in Swift -



xcode - Core Foundation Framework Error in Swift -

i attempting phone call cfswapint32hosttobig(<#arg: uint32#>) method in swift file. have added corefoundation framework project , have "import corefoundation" @ top of swift file. when begin type method name, xcode suggest method indicating me xcode recognizing methods framework. have no errors in xcode implying of syntax correct, when build next error.

> ld deriveddata/audiotoy/build/products/debug-iphonesimulator/audiotoy.app/audiotoy normal x86_64 cd /users/michaliberman/documents/projects/swift/audiotoy export iphoneos_deployment_target=8.0 export path="/applications/xcode.app/contents/developer/platforms/iphonesimulator.platform/developer/usr/bin:/applications/xcode.app/contents/developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin" /applications/xcode.app/contents/developer/toolchains/xcodedefault.xctoolchain/usr/bin/clang -arch x86_64 -isysroot /applications/xcode.app/contents/developer/platforms/iphonesimulator.platform/developer/sdks/iphonesimulator8.0.sdk -l/users/michaliberman/documents/projects/swift/audiotoy/deriveddata/audiotoy/build/products/debug-iphonesimulator -f/users/michaliberman/documents/projects/swift/audiotoy/deriveddata/audiotoy/build/products/debug-iphonesimulator -filelist /users/michaliberman/documents/projects/swift/audiotoy/deriveddata/audiotoy/build/intermediates/audiotoy.build/debug-iphonesimulator/audiotoy.build/objects-normal/x86_64/audiotoy.linkfilelist -xlinker -rpath -xlinker @executable_path/frameworks -xlinker -objc_abi_version -xlinker 2 -l/applications/xcode.app/contents/developer/toolchains/xcodedefault.xctoolchain/usr/lib/swift/iphonesimulator -xlinker -add_ast_path -xlinker /users/michaliberman/documents/projects/swift/audiotoy/deriveddata/audiotoy/build/intermediates/audiotoy.build/debug-iphonesimulator/audiotoy.build/objects-normal/x86_64/audiotoy.swiftmodule -mios-simulator-version-min=8.0 -framework corefoundation -framework avfoundation -framework audiotoolbox -xlinker -dependency_info -xlinker /users/michaliberman/documents/projects/swift/audiotoy/deriveddata/audiotoy/build/intermediates/audiotoy.build/debug-iphonesimulator/audiotoy.build/objects-normal/x86_64/audiotoy_dependency_info.dat -o /users/michaliberman/documents/projects/swift/audiotoy/deriveddata/audiotoy/build/products/debug-iphonesimulator/audiotoy.app/audiotoy undefined symbols architecture x86_64: "_caswapfloat32", referenced from: _caswapfloat32hosttobig in audiostudio.o "__osswapint32", referenced from: _cfswapint32hosttobig in audiostudio.o ld: symbol(s) not found architecture x86_64 clang: error: linker command failed exit code 1 (use -v see invocation)

i have removed , re-imported framework, still error. when option-click on method name shows me header file in method declared , if click on header file see within framework. not sure when problem appears within framework.

use bigendian , littleendian methods

let valuele16 = 16 allow valuebe16 = valuele16.bigendian println("valuele16: \(valuele16)") // valuele16: 16 println("valuebe16: \(valuebe16)") // valuebe16: 1152921504606846976 allow valuele16: int16 = 16 //unsafepointer<uint16>(value.bytes)[0] allow valuebe16: int16 = valuele16.bigendian println("valuele16: \(valuele16)") // valuele16: 16 println("valuebe16: \(valuebe16)") // valuebe16: 4096

xcode swift core-foundation

Comments

Popular posts from this blog

Delphi change the assembly code of a running process -

json - Hibernate and Jackson (java.lang.IllegalStateException: Cannot call sendError() after the response has been committed) -

C++ 11 "class" keyword -