为什么custom的framework总是报”can not find ~.framework“的错呢

megan 发布于 2013年11月20日
无人欣赏。

参照https://github.com/jverkoey/iOS-Framework这个生成了一个framework,当我以dependant的方式加进去没有什么问题, 但是以ThirdParty的方式加进去的却总是报“can not find ~.framework” 的错呢? 各位大神大仙快帮帮小妹我吧

共16条回复
tinyfool 回复于 2013年11月20日

比卡丘出击 @sycx

gb18030 回复于 2013年11月20日

比卡丘出击 @sycx

vikiliu0310 回复于 2013年11月20日

在Project文件设置一下Framework Search Path?

icodor 回复于 2013年11月20日

比卡丘出击 @sycx

megan 回复于 2013年11月20日

3楼 @vikiliu0310 设置过了,还是报这个错

tinyfool 回复于 2013年11月20日

2楼 @gb18030

4楼 @icodor 不要乱召唤,回头不灵了

sycx 回复于 2013年11月20日

报错是什么时候报的错,是添加framework的时候报错? 还是编译的时候报错?

报错的完整错误信息是什么?

megan 回复于 2013年11月20日

7楼 @sycx 编译的时候报的错,传说中的@sycx 大神出现了。谢谢你 Ld /Users/heyue/Library/Developer/Xcode/DerivedData/ThirdParty-dygwyjkkfplqwfcvikagrdwpyqpz/Build/Products/Debug-iphoneos/ThirdParty.app/ThirdParty normal armv7 cd /Users/heyue/Desktop/ThirdParty setenv IPHONEOSDEPLOYMENTTARGET 6.0 setenv PATH "/Applications/Xcode5.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode5.app/Contents/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin" /Applications/Xcode5.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch armv7 -isysroot /Applications/Xcode5.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk -L/Users/heyue/Library/Developer/Xcode/DerivedData/ThirdParty-dygwyjkkfplqwfcvikagrdwpyqpz/Build/Products/Debug-iphoneos -L. -LThirdParty -LThirdParty/Images.xcassets -LThirdParty/Images.xcassets/AppIcon.appiconset -LThirdParty/Images.xcassets/LaunchImage.launchimage -F/Users/heyue/Library/Developer/Xcode/DerivedData/ThirdParty-dygwyjkkfplqwfcvikagrdwpyqpz/Build/Products/Debug-iphoneos -F/Users/heyue/Desktop/ThirdParty -F/Users/heyue/Desktop/ThirdParty -filelist /Users/heyue/Library/Developer/Xcode/DerivedData/ThirdParty-dygwyjkkfplqwfcvikagrdwpyqpz/Build/Intermediates/ThirdParty.build/Debug-iphoneos/ThirdParty.build/Objects-normal/armv7/ThirdParty.LinkFileList -deadstrip -ObjC -fobjc-arc -fobjc-link-runtime -miphoneos-version-min=6.0 -framework UIKit -framework Foundation -framework AugcloudMobileSharedlib -Xlinker -dependencyinfo -Xlinker /Users/heyue/Library/Developer/Xcode/DerivedData/ThirdParty-dygwyjkkfplqwfcvikagrdwpyqpz/Build/Intermediates/ThirdParty.build/Debug-iphoneos/ThirdParty.build/Objects-normal/armv7/ThirdPartydependencyinfo.dat -o /Users/heyue/Library/Developer/Xcode/DerivedData/ThirdParty-dygwyjkkfplqwfcvikagrdwpyqpz/Build/Products/Debug-iphoneos/ThirdParty.app/ThirdParty

ld: framework not found AugcloudMobileSharedlib clang: error: linker command failed with exit code 1 (use -v to see invocation)

sycx 回复于 2013年11月20日

8楼 @megan

你的AugcloudMobileSharedlib.framework在哪个目录?

megan 回复于 2013年11月20日

9楼 @sycx 在第一层ThirdParty里面

sycx 回复于 2013年11月20日

10楼 @megan 检查下 Copy Files Build 看看有没有AugcloudMobileSharedlib.framework, 有的话删掉它

清醒疯子 回复于 2013年11月21日

11楼 @sycx

好专业的样子:):):)牛:)目标啊:)

megan 回复于 2013年11月21日

11楼 @sycx 没有哦, 是不是xcode5不一样啊

vikiliu0310 回复于 2013年11月21日

Select the Build Settings tab and search for Other Linker Flags. If not already present, add -ObjC 这个是我之前导入一个库搜的方法- -!

megan 回复于 2013年11月22日

14楼 @vikiliu0310 都试过了。。。 估计是https://github.com/jverkoey/iOS-Framework提供的脚本不对,才导致生成的framework找不到,我现在用https://github.com/kstenerud/iOS-Universal-Framework生成了framework可以用了。谢谢 @sycx 谢谢 @vikiliu0310 谢谢 @tinyfool 谢谢 @gb18030 谢谢你们各位

vikiliu0310 回复于 2013年11月22日

15楼 @megan Mark !

本帖有16个回复,因为您没有注册或者登录本站,所以,只能看到本帖的10条回复。如果想看到全部回复,请注册或者登录本站。

登录 或者 注册
相关帖子

[顶 楼]
|
|
[底 楼]
|
|
[首 页]