按键问题,代码编译没有语法问题,可是出现了这些! 什么情况?

JackZeng_sys 2008-05-22 11:17:51
Building target “ViewandButton” of project “ViewandButton” with configuration “Debug” — (11 errors, 2 warnings)
cd "/Volumes/disk0s2/Text code/ViewandButton"
/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc-4.0 -x objective-c -arch i386 -fmessage-length=0 -pipe -std=c99 -Wno-trigraphs -fpascal-strings -fasm-blocks -O0 -Wreturn-type -Wunused-variable -D__IPHONE_OS_VERSION_MIN_REQUIRED=20000 -isysroot /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator2.0.sdk -fvisibility=hidden -mmacosx-version-min=10.5 -gdwarf-2 -iquote "/Volumes/disk0s2/Text code/ViewandButton/build/ViewandButton.build/Debug-iphonesimulator/ViewandButton.build/ViewandButton-generated-files.hmap" "-I/Volumes/disk0s2/Text code/ViewandButton/build/ViewandButton.build/Debug-iphonesimulator/ViewandButton.build/ViewandButton-own-target-headers.hmap" "-I/Volumes/disk0s2/Text code/ViewandButton/build/ViewandButton.build/Debug-iphonesimulator/ViewandButton.build/ViewandButton-all-target-headers.hmap" -iquote "/Volumes/disk0s2/Text code/ViewandButton/build/ViewandButton.build/Debug-iphonesimulator/ViewandButton.build/ViewandButton-project-headers.hmap" "-F/Volumes/disk0s2/Text code/ViewandButton/build/Debug-iphonesimulator" "-I/Volumes/disk0s2/Text code/ViewandButton/build/Debug-iphonesimulator/include" "-I/Volumes/disk0s2/Text code/ViewandButton/build/ViewandButton.build/Debug-iphonesimulator/ViewandButton.build/DerivedSources" -include /var/folders/r1/r1EopKPdGvugVPmFQb2fGk+++TI/-Caches-/com.apple.Xcode.501/SharedPrecompiledHeaders/ViewandButton_Prefix-cuvzmfayouzcwohggmshlfxzgkgz/ViewandButton_Prefix.pch -c "/Volumes/disk0s2/Text code/ViewandButton/Classes/ViewandButtonAppDelegate.m" -o "/Volumes/disk0s2/Text code/ViewandButton/build/ViewandButton.build/Debug-iphonesimulator/ViewandButton.build/Objects-normal/i386/ViewandButtonAppDelegate.o"
/Volumes/disk0s2/Text code/ViewandButton/Classes/ViewandButtonAppDelegate.m:73: warning: property 'view2' requires method '-view2' to be defined - use @synthesize, @dynamic or provide a method implementation
/Volumes/disk0s2/Text code/ViewandButton/Classes/ViewandButtonAppDelegate.m:73: warning: property 'view2' requires the method 'setView2:' to be defined - use @synthesize, @dynamic or provide a method implementation
/Volumes/disk0s2/Text code/ViewandButton/Classes/ViewandButtonAppDelegate.m:73: warning: property 'view2' requires method '-view2' to be defined - use @synthesize, @dynamic or provide a method implementation
/Volumes/disk0s2/Text code/ViewandButton/Classes/ViewandButtonAppDelegate.m:73: warning: property 'view2' requires the method 'setView2:' to be defined - use @synthesize, @dynamic or provide a method implementation
cd "/Volumes/disk0s2/Text code/ViewandButton"
/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc-4.0 -arch i386 -isysroot /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator2.0.sdk "-L/Volumes/disk0s2/Text code/ViewandButton/build/Debug-iphonesimulator" "-F/Volumes/disk0s2/Text code/ViewandButton/build/Debug-iphonesimulator" -filelist "/Volumes/disk0s2/Text code/ViewandButton/build/ViewandButton.build/Debug-iphonesimulator/ViewandButton.build/Objects-normal/i386/ViewandButton.LinkFileList" -mmacosx-version-min=10.5 -framework Foundation -framework UIKit -framework CoreGraphics -o "/Volumes/disk0s2/Text code/ViewandButton/build/Debug-iphonesimulator/ViewandButton.app/ViewandButton"
Undefined symbols:
"_kCAMediaTimingFunctionEaseInEaseOut", referenced from:
_kCAMediaTimingFunctionEaseInEaseOut$non_lazy_ptr in TransitionView.o
"_kCATransitionFromRight", referenced from:
_kCATransitionFromRight$non_lazy_ptr in ViewandButtonAppDelegate.o
"_kCATransitionFade", referenced from:
_kCATransitionFade$non_lazy_ptr in ViewandButtonAppDelegate.o
_kCATransitionFade$non_lazy_ptr in TransitionView.o
".objc_class_name_CAMediaTimingFunction", referenced from:
literal-pointer@__OBJC@__cls_refs@CAMediaTimingFunction in TransitionView.o
"_kCATransitionFromBottom", referenced from:
_kCATransitionFromBottom$non_lazy_ptr in ViewandButtonAppDelegate.o
"_kCATransitionMoveIn", referenced from:
_kCATransitionMoveIn$non_lazy_ptr in ViewandButtonAppDelegate.o
"_kCATransitionFromLeft", referenced from:
_kCATransitionFromLeft$non_lazy_ptr in ViewandButtonAppDelegate.o
"_kCATransitionPush", referenced from:
_kCATransitionPush$non_lazy_ptr in ViewandButtonAppDelegate.o
".objc_class_name_CATransition", referenced from:
literal-pointer@__OBJC@__cls_refs@CATransition in TransitionView.o
"_kCATransitionFromTop", referenced from:
_kCATransitionFromTop$non_lazy_ptr in ViewandButtonAppDelegate.o
"_kCATransitionReveal", referenced from:
_kCATransitionReveal$non_lazy_ptr in ViewandButtonAppDelegate.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
"_kCAMediaTimingFunctionEaseInEaseOut", referenced from:
_kCAMediaTimingFunctionEaseInEaseOut$non_lazy_ptr in TransitionView.o
"_kCATransitionFromRight", referenced from:
_kCATransitionFromRight$non_lazy_ptr in ViewandButtonAppDelegate.o
"_kCATransitionFade", referenced from:
_kCATransitionFade$non_lazy_ptr in ViewandButtonAppDelegate.o
_kCATransitionFade$non_lazy_ptr in TransitionView.o
".objc_class_name_CAMediaTimingFunction", referenced from:
literal-pointer@__OBJC@__cls_refs@CAMediaTimingFunction in TransitionView.o
"_kCATransitionFromBottom", referenced from:
_kCATransitionFromBottom$non_lazy_ptr in ViewandButtonAppDelegate.o
"_kCATransitionMoveIn", referenced from:
_kCATransitionMoveIn$non_lazy_ptr in ViewandButtonAppDelegate.o
"_kCATransitionFromLeft", referenced from:
_kCATransitionFromLeft$non_lazy_ptr in ViewandButtonAppDelegate.o
"_kCATransitionPush", referenced from:
_kCATransitionPush$non_lazy_ptr in ViewandButtonAppDelegate.o
".objc_class_name_CATransition", referenced from:
literal-pointer@__OBJC@__cls_refs@CATransition in TransitionView.o
"_kCATransitionFromTop", referenced from:
_kCATransitionFromTop$non_lazy_ptr in ViewandButtonAppDelegate.o
"_kCATransitionReveal", referenced from:
_kCATransitionReveal$non_lazy_ptr in ViewandButtonAppDelegate.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
Build failed (11 errors, 2 warnings)
...全文
471 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
ydfok 2008-08-27
  • 打赏
  • 举报
回复
楼主大概没有把需要的包加到工程里面去。
JackZeng_sys 2008-05-27
  • 打赏
  • 举报
回复
工程里面没又.o文件啊! 就.h 和.m文件!


cangwu_lee 2008-05-22
  • 打赏
  • 举报
回复


.o的引用有問題

29,027

社区成员

发帖
与我相关
我的任务
社区描述
主要讨论与iOS相关的软件和技术
社区管理员
  • iOS
  • 大熊猫侯佩
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧