- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我尝试了几乎所有的解决方案,但都不适合我。我在 Xcode 6 上收到此错误。我也更新了 cocoa pod ,也更新了 pod 文件。
安装更新后,我在下面添加了几行:
[!] From now on use `PocketLobbyiOS.xcworkspace`.
[!] The use of implicit sources has been deprecated. To continue using all of the sources currently on your machine, add the following to the top of your Podfile:
source 'https://github.com/CocoaPods/Specs.git'
[!] The `PocketLobbyiOS [Debug]` target overrides the `GCC_PREPROCESSOR_DEFINITIONS` build setting defined in `Pods/Target Support Files/Pods/Pods.debug.xcconfig'. This can lead to problems with the CocoaPods installation
- Use the `$(inherited)` flag, or
- Remove the build settings from the target.
[!] The `PocketLobbyiOS [Release]` target overrides the `GCC_PREPROCESSOR_DEFINITIONS` build setting defined in `Pods/Target Support Files/Pods/Pods.release.xcconfig'. This can lead to problems with the CocoaPods installation
- Use the `$(inherited)` flag, or
- Remove the build settings from the target.
[!] The `PocketLobbyiOS [Distribution]` target overrides the `GCC_PREPROCESSOR_DEFINITIONS` build setting defined in `Pods/Target Support Files/Pods/Pods.distribution.xcconfig'. This can lead to problems with the CocoaPods installation
- Use the `$(inherited)` flag, or
- Remove the build settings from the target.
[!] OHAttributedLabel has been deprecated in favor of DTCoreText
Sajs-MacBook-Pro:PockyiOS sk$
这是我在 podfile 中的内容。我已删除 podfile 并重新安装,但仍然出现同样的错误。
platform :ios, '6.0'
pod 'MWPhotoBrowser', :git => 'https://github.com/floriankrueger/MWPhotoBrowser.git', :tag => '1.4.1'
pod 'TestFlightSDK', '~> 3.0.2'
pod 'RestKit', '~> 0.23.1'
pod 'RestKit/ObjectMapping'
pod 'RestKit/Search'
pod 'RestKit/Testing'
pod 'PKRevealController', '~> 2.0.6'
pod 'Mapbox', :git => 'https://github.com/mapbox/mapbox-ios-sdk.git', :tag => '1.2.0'
pod 'MagicalRecord/Shorthand', '~> 2.2'
pod 'DDPageControl', '~> 0.1'
pod 'MWPhotoBrowser'
pod 'Reachability', '~> 3.1.1'
pod 'Mixpanel', '~> 2.4.0'
pod 'OHAttributedLabel', '~> 3.5.4'
# ignore all warnings from all pods
inhibit_all_warnings!
post_install do |installer_representation|
installer_representation.project.targets.each do |target|
target.build_configurations.each do |config|
config.build_settings['ONLY_ACTIVE_ARCH'] = 'NO'
end
end
end
再次重新安装 pod 后,Restkit 错误消失了,但出现以下错误:
ld: warning: ignoring file /Users/sanojkashyap/Library/Developer/Xcode/DerivedData/PocketLobbyiOS-euffofwxmoaqxqbfslgkbnhhzdsz/Build/Products/Debug-iphonesimulator/PocketLobbyiOS.app/PocketLobbyiOS, file was built for i386 which is not the architecture being linked (x86_64): /Users/sanojkashyap/Library/Developer/Xcode/DerivedData/PocketLobbyiOS-euffofwxmoaqxqbfslgkbnhhzdsz/Build/Products/Debug-iphonesimulator/PocketLobbyiOS.app/PocketLobbyiOS Undefined symbols for architecture x86_64:
"_OBJC_CLASS_$_PLArticle", referenced from: objc-class-ref in PLArticleTests.o (maybe you meant: _OBJC_CLASS_$_PLArticleTests) "_OBJC_CLASS_$_PLLocation", referenced from: objc-class-ref in PLArticleTests.o "_OBJC_CLASS_$_XCTestCase", referenced from: _OBJC_CLASS_$_PLArticleTests in PLArticleTests.o "_OBJC_EHTYPE_$__XCTestCaseInterruptionException", referenced from: GCC_except_table2 in PLArticleTests.o "_OBJC_METACLASS_$_XCTestCase", referenced from: _OBJC_METACLASS_$_PLArticleTests in PLArticleTests.o "__XCTDescriptionForValue", referenced from: -[PLArticleTests testExample] in PLArticleTests.o "__XCTFailureFormat", referenced from: -[PLArticleTests testExample] in PLArticleTests.o "__XCTFailureHandler", referenced from: -[PLArticleTests testExample] in PLArticleTests.o ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation)(null): "_OBJC_CLASS_$_PLArticle", referenced from:
(null): Objc-class-ref in PLArticleTests.o
(null): (maybe you meant: _OBJC_CLASS_$_PLArticleTests)
(null): "_OBJC_CLASS_$_PLLocation", referenced from:
(null): Objc-class-ref in PLArticleTests.o
(null): "_OBJC_CLASS_$_XCTestCase", referenced from:
(null): _OBJC_CLASS_$_PLArticleTests in PLArticleTests.o
(null): "_OBJC_EHTYPE_$__XCTestCaseInterruptionException", referenced from:
(null): GCC_except_table2 in PLArticleTests.o
(null): "_OBJC_METACLASS_$_XCTestCase", referenced from:
(null): _OBJC_METACLASS_$_PLArticleTests in PLArticleTests.o
(null): "__XCTDescriptionForValue", referenced from:
(null): -[PLArticleTests testExample] in PLArticleTests.o
(null): "__XCTFailureFormat", referenced from:
(null): -[PLArticleTests testExample] in PLArticleTests.o
(null): "__XCTFailureHandler", referenced from:
(null): -[PLArticleTests testExample] in PLArticleTests.o
(null): Symbol(s) not found for architecture x86_64
(null): Linker command failed with exit code 1 (use -v to see invocation)
Ld /Users/sanojkashyap/Library/Developer/Xcode/DerivedData/PocketLobbyiOS-euffofwxmoaqxqbfslgkbnhhzdsz/Build/Intermediates/PocketLobbyiOS.build/Debug-iphonesimulator/PocketLobbyiOSTests.build/Objects-normal/i386/PocketLobbyiOSTests normal i386 cd /Users/sanojkashyap/pocketlobbyiOS/PocketLobbyiOS export IPHONEOS_DEPLOYMENT_TARGET=6.1 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 i386 -bundle -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.0.sdk -L/Users/sanojkashyap/Library/Developer/Xcode/DerivedData/PocketLobbyiOS-euffofwxmoaqxqbfslgkbnhhzdsz/Build/Products/Debug-iphonesimulator -L/Users/sanojkashyap/pocketlobbyiOS/PocketLobbyiOS/Pods/Mapbox/Proj4 -L/Users/sanojkashyap/pocketlobbyiOS/PocketLobbyiOS/Pods/TestFlightSDK -F/Users/sanojkashyap/Library/Developer/Xcode/DerivedData/PocketLobbyiOS-euffofwxmoaqxqbfslgkbnhhzdsz/Build/Products/Debug-iphonesimulator -F/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.0.sdk/Developer/Library/Frameworks -F/Applications/Xcode.app/Contents/Developer/Library/Frameworks -F/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Library/Frameworks -F/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.0.sdk/Developer/Library/Frameworks -filelist /Users/sanojkashyap/Library/Developer/Xcode/DerivedData/PocketLobbyiOS-euffofwxmoaqxqbfslgkbnhhzdsz/Build/Intermediates/PocketLobbyiOS.build/Debug-iphonesimulator/PocketLobbyiOSTests.build/Objects-normal/i386/PocketLobbyiOSTests.LinkFileList -bundle_loader /Users/sanojkashyap/Library/Developer/Xcode/DerivedData/PocketLobbyiOS-euffofwxmoaqxqbfslgkbnhhzdsz/Build/Products/Debug-iphonesimulator/PocketLobbyiOS.app/PocketLobbyiOS -Xlinker -objc_abi_version -Xlinker 2 -ObjC -lPods-AFNetworking -lPods-DACircularProgress -lPods-DDPageControl -lPods-FMDB -lPods-GRMustache -lPods-ISO8601DateFormatterValueTransformer -lPods-JRSwizzle -lPods-MBProgressHUD -lPods-MWPhotoBrowser -lPods-MagicalRecord -lPods-Mapbox -lPods-Mixpanel -lPods-OHAttributedLabel -lPods-PKRevealController -lPods-PSTCollectionView -lPods-RKValueTransformers -lPods-Reachability -lPods-RestKit -lPods-SDWebImage -lPods-SMCalloutView -lPods-SOCKit -lPods-TestFlightSDK -lPods-TransitionKit -lProj4 -lTestFlight -lsqlite3 -lz -framework Accelerate -framework AssetsLibrary -framework CFNetwork -framework CoreData -framework CoreGraphics -framework CoreLocation -framework CoreTelephony -framework CoreText -framework Foundation -framework ImageIO -framework MapKit -framework MessageUI -framework MobileCoreServices -framework QuartzCore -framework Security -framework SystemConfiguration -framework UIKit -fobjc-arc -fobjc-link-runtime -Xlinker -no_implicit_dylibs -mios-simulator-version-min=6.1 -framework UIKit -framework Foundation -lPods -Xlinker -dependency_info -Xlinker /Users/sanojkashyap/Library/Developer/Xcode/DerivedData/PocketLobbyiOS-euffofwxmoaqxqbfslgkbnhhzdsz/Build/Intermediates/PocketLobbyiOS.build/Debug-iphonesimulator/PocketLobbyiOSTests.build/Objects-normal/i386/PocketLobbyiOSTests_dependency_info.dat -o /Users/sanojkashyap/Library/Developer/Xcode/DerivedData/PocketLobbyiOS-euffofwxmoaqxqbfslgkbnhhzdsz/Build/Intermediates/PocketLobbyiOS.build/Debug-iphonesimulator/PocketLobbyiOSTests.build/Objects-normal/i386/PocketLobbyiOSTests
Undefined symbols for architecture i386: "_OBJC_CLASS_$_XCTestCase", referenced from: _OBJC_CLASS_$_PLArticleTests in PLArticleTests.o "_OBJC_EHTYPE_$__XCTestCaseInterruptionException", referenced from: GCC_except_table2 in PLArticleTests.o "_OBJC_METACLASS_$_XCTestCase", referenced from: _OBJC_METACLASS_$_PLArticleTests in PLArticleTests.o "__XCTDescriptionForValue", referenced from: -[PLArticleTests testExample] in PLArticleTests.o "__XCTFailureFormat", referenced from: -[PLArticleTests testExample] in PLArticleTests.o "__XCTFailureHandler", referenced from: -[PLArticleTests testExample] in PLArticleTests.o ld: symbol(s) not found for architecture i386 clang: error: linker command failed with exit code 1 (use -v to see invocation)
最佳答案
尝试将 Pods.debug 添加到您的项目 -> Info -> Configurations -> Debug,并将 Pods.release 添加到 Release 部分。我通过此设置解决了我丢失的“RestKit.h”问题。
关于ios - 在 xcode 6 上找不到“RestKit/RestKit.h”文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26376337/
例如,我有一个父类Author: class Author { String name static hasMany = [ fiction: Book,
代码如下: dojo.query(subNav.navClass).forEach(function(node, index, arr){ if(dojo.style(node, 'd
我有一个带有 Id 和姓名的学生表和一个带有 Id 和 friend Id 的 Friends 表。我想加入这两个表并找到学生的 friend 。 例如,Ashley 的 friend 是 Saman
我通过互联网浏览,但仍未找到问题的答案。应该很容易: class Parent { String name Child child } 当我有一个 child 对象时,如何获得它的 paren
我正在尝试创建一个以 Firebase 作为我的后端的社交应用。现在我正面临如何(在哪里?)找到 friend 功能的问题。 我有每个用户的邮件地址。 我可以访问用户的电话也预订。 在传统的后端中,我
我主要想澄清以下几点: 1。有人告诉我,在 iOS 5 及以下版本中,如果您使用 Game Center 设置多人游戏,则“查找 Facebook 好友”(如与好友争夺战)的功能不是内置的,因此您需要
关于redis docker镜像ENTRYPOINT脚本 docker-entrypoint.sh : #!/bin/sh set -e # first arg is `-f` or `--some-
我是一名优秀的程序员,十分优秀!