簡體   English   中英

執行存檔時引用的OBJC類

[英]OBJC Class referenced from when doing an Archive

當我僅在模擬器上運行該應用程序時,一切正常。

現在,我想存檔該應用程序以將其上傳到testflight,並且在歸檔時出現以下錯誤:

Ld /Users/user123/Library/Developer/Xcode/DerivedData/CityLife-eoovatnxpocygjcdijxojtryqted/Build/Intermediates/ArchiveIntermediates/Production/IntermediateBuildFilesPath/CityLife.build/Release-iphoneos/Production.build/Objects-normal/arm64/Production normal arm64
    cd /Users/user123/Documents/Development/Comp/citylife_user_phone_app_ios
    export IPHONEOS_DEPLOYMENT_TARGET=7.0
    export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.2.sdk -L/Users/user123/Library/Developer/Xcode/DerivedData/CityLife-eoovatnxpocygjcdijxojtryqted/Build/Intermediates/ArchiveIntermediates/Production/BuildProductsPath/Release-iphoneos -L/Users/user123/Documents/Development/Comp/citylife_user_phone_app_ios/Pods/GoogleAnalytics/Libraries -F/Users/user123/Library/Developer/Xcode/DerivedData/CityLife-eoovatnxpocygjcdijxojtryqted/Build/Intermediates/ArchiveIntermediates/Production/BuildProductsPath/Release-iphoneos -FCityLife/Frameworks -F/Users/user123/Documents/Development/Comp/citylife_user_phone_app_ios -filelist /Users/user123/Library/Developer/Xcode/DerivedData/CityLife-eoovatnxpocygjcdijxojtryqted/Build/Intermediates/ArchiveIntermediates/Production/IntermediateBuildFilesPath/CityLife.build/Release-iphoneos/Production.build/Objects-normal/arm64/Production.LinkFileList -miphoneos-version-min=7.0 -dead_strip -ObjC -lAFNetworkActivityLogger -lAFNetworking -lAFOAuth2Manager -lBase64 -lFXBlurView -lGVPhotoBrowser -lGoogleAnalytics -lHexColors -lISO8601DateFormatter -lJSONModel -lMBProgressHUD -lMagicalRecord -lMasonry -lMixpanel -lNSDate+RelativeTime -lPDKeychainBindingsController -lQR-Code-Encoder-for-Objective-C -lREMenu -lReliant -lSVProgressHUD -lTSMessages -lTTTAttributedLabel -lTTTLocalizedPluralString -lUICKeyChainStore -lUIScrollView-InfiniteScroll -licucore -lsqlite3 -lz -framework Accelerate -framework CoreData -framework CoreGraphics -framework CoreTelephony -framework CoreText -framework Foundation -framework MobileCoreServices -framework QuartzCore -framework Security -framework SystemConfiguration -framework UIKit -fobjc-arc -fobjc-link-runtime -stdlib=libc++ -framework CoreData -lz -framework SystemConfiguration -framework CoreTelephony -framework AVFoundation -framework CoreMedia -framework QuartzCore -framework CoreVideo -framework MobileCoreServices -framework KBCPaymentKit -framework AdSupport -framework AddressBookUI -framework Crashlytics -framework AddressBook -liconv -framework MessageUI -framework MapKit -lsqlite3 -framework CoreLocation -framework Accounts -framework Social -framework UIKit -framework Foundation -framework CoreGraphics -lPods -Xlinker -dependency_info -Xlinker /Users/user123/Library/Developer/Xcode/DerivedData/CityLife-eoovatnxpocygjcdijxojtryqted/Build/Intermediates/ArchiveIntermediates/Production/IntermediateBuildFilesPath/CityLife.build/Release-iphoneos/Production.build/Objects-normal/arm64/Production_dependency_info.dat -o /Users/user123/Library/Developer/Xcode/DerivedData/CityLife-eoovatnxpocygjcdijxojtryqted/Build/Intermediates/ArchiveIntermediates/Production/IntermediateBuildFilesPath/CityLife.build/Release-iphoneos/Production.build/Objects-normal/arm64/Production

Undefined symbols for architecture arm64:
  "_OBJC_CLASS_$_CommunityRemoteService", referenced from:
      objc-class-ref in CommunityDetailsViewController.o
      objc-class-ref in CommunityRewardsTableViewController.o
      objc-class-ref in WishlistTableViewController.o
      objc-class-ref in CommunityOverviewTableViewController.o
      objc-class-ref in CommunityRewardDetailTableViewController.o
      objc-class-ref in ProfileCommunityOverViewTableViewController.o
      objc-class-ref in CommunityDealsTableViewController.o
      ...
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

我嘗試了在Pods目標上添加$(inherited)標志的操作,但是沒有任何幫助。

有人知道怎么了嗎?

找到了問題。 因為我已經使用AppCode創建了文件,所以這些文件僅在測試目標中,而不在生產目標中。

我已經通過xCode將它們添加到了編譯源中,現在它可以工作了。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM