我尝试使用此代码,但它不起作用。 http://developer.apple.com/library/ios/#samplecode/PageControl/Introduction/Intro.html
Ld“/ Users / waitonza / Library / Developer / Xcode / DerivedData / Dr_Ngoo-aanknxmuodcgjicaigxevljxokeq / Build / Products / Debug-iphonesimulator / Dr Ngoo.app/Dr Ngoo“正常的i386 cd / Users / waitonza / Desktop / Project / Dr-Ngoo setenv MACOSX_DEPLOYMENT_TARGET 10.6 setenv 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 i386 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.1.sdk -L /用户/ waitonza /库/开发商/ Xcode中/ DerivedData / Dr_Ngoo-aanknxmuodcgjicaigxevljxokeq /编译/产品/调试,iphonesimulator -F /用户/ waitonza /库/开发商/ Xcode中/ DerivedData / Dr_Ngoo-aanknxmuodcgjicaigxevljxokeq /编译/产品/调试,iphonesimulator -filelist“/ Users / waitonza / Library / Developer / Xcode / DerivedData / Dr_Ngoo-aanknxmuodcgjicaigxevljxokeq / Build / Intermediates / Dr Ngoo.build/Debug-iphonesimulator/Dr Ngoo.build/Objects-normal/i386/Dr Ngoo.LinkFileList“-mmacosx-version-min = 10.6 -Xlinker -objc_abi_version -Xlinker 2 -fobjc-arc -Xlinker -no_implicit_dylibs -D__IPHONE_OS_VERSION_MIN_REQUIRED = 50100 -framework QuartzCore -framework SystemConfiguration -lsqlite3.0 -framework UIKit -framework Foundation -framework CoreGraphics -o “/用户/ waitonza /库/开发商/ Xcode中/ DerivedData / Dr_Ngoo-aanknxmuodcgjicaigxevljxokeq /编译/产品/调试-iphonesimulator /博士 Ngoo.app/Dr Ngoo“
架构i386的未定义符号:
“_OBJC_CLASS _ $ _ PagingScrollViewController”,引自: DrNgooAppDelegate.o中的objc-class-ref ld:找不到架构i386 clang的符号:错误:链接器命令失败并退出 代码1(使用-v查看调用)
答案 0 :(得分:1)
PagingScrollViewController类不在您的编译列表中。在文件树中,单击顶部的项目,然后转到目标>构建阶段展开“编译阶段”,然后将PagingScrollViewController.m文件拖到列表中并运行。
答案 1 :(得分:1)
解决方案与我们在评论中讨论的相同:
I checked your project and it does not have PagingScrollViewController. You're probably referencing it from outside the folder. Add it to the project too and it should work fine!
@CodaFi也有正确答案,所以给他+1!