小编l5d*_*dj5的帖子

可以通过iOS中的蓝牙PAN与系留设备进行通信

我有一个设备,我通过蓝牙(蓝牙PAN)从iOS设备分享我的连接.

我想知道是否可以访问在PAN网络上的iPhone上创建服务器并从设备访问它或在设备上创建服务器并从iPhone访问它.

有没有人有这种经历?我知道肯定可以用Android设备完成.

network-programming bluetooth objective-c ios swift

7
推荐指数
1
解决办法
3484
查看次数

Swift嵌入式库 - >命令/ usr/bin/codesign失败,退出代码为1

我正在尝试将swift框架集成到我的项目中:http: //developer.skobbler.com/download/SKMaps_iOS_2.4.0_withDemo_Swift.zip

当我尝试集成为嵌入式二进制时,xcode无法对代码进行编码并告诉我"代码签名失败,退出代码为1".

CodeSign /Users/k1x/Library/Developer/Xcode/DerivedData/TestMaps-dubiwcafqgeplbabdrqpjtokouxq/Build/Products/Debug-iphoneos/TestMaps.app/Frameworks/SKMaps.framework
    cd "/Users/k1x/Workspace iOS/SwitchMaps"
    export CODESIGN_ALLOCATE=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/codesign_allocate
    export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"

Signing Identity:     "iPhone Developer"

    /usr/bin/codesign --force --sign 56131F60BE8DA3BA4F04CBF6717C75951E93E4D6 --preserve-metadata=identifier,entitlements,resource-rules /Users/k1x/Library/Developer/Xcode/DerivedData/TestMaps-dubiwcafqgeplbabdrqpjtokouxq/Build/Products/Debug-iphoneos/TestMaps.app/Frameworks/SKMaps.framework

Warning: usage of --preserve-metadata with option "resource-rules" (deprecated in Mac OS X >= 10.10)!
/Users/k1x/Library/Developer/Xcode/DerivedData/TestMaps-dubiwcafqgeplbabdrqpjtokouxq/Build/Products/Debug-iphoneos/TestMaps.app/Frameworks/SKMaps.framework: invalid resource specification rule(s)
Command /usr/bin/codesign failed with exit code 1
Run Code Online (Sandbox Code Playgroud)

我试图将框架放在"链接框架和二进制文件"部分中.但我有以下输出:

dyld: Library not loaded: @rpath/SKMaps.framework/SKMaps
  Referenced from: /private/var/mobile/Containers/Bundle/Application/B3686F36-2120-4007-97AB-B2D3B423C0A0/TestMaps.app/TestMaps
  Reason: image not found
Run Code Online (Sandbox Code Playgroud)

我用Google搜索并找到了此问题的其他帖子,但他们没有回答我的问题.万一它的Objective C版本的一切正常:http: //developer.skobbler.com/download/SKMaps_iOS_2.4.0_withDemo.zip

xcode ios skmaps swift

5
推荐指数
1
解决办法
1041
查看次数