iOS _OBJC_CLASS _ $ _ THCircularProgressView引自:ViewController.o中的objc-class-ref

时间:2016-02-16 11:47:52

标签: ios objective-c iphone xcode linker-errors

IOS App在模拟器中运行,但是当我尝试在设备(IPhone 5)上运行时,它失败了,我收到以下错误:

"OBJC_CLASS_$_THCircularProgressView" referenced from:
objc-class-ref in viewcontroller.o
Symbol(s) not found for architecture arm64

Linker Command failed with exit code 1

Podfile

platform :ios, '7.0'
pod 'MBProgressHUD', '~> 0.8'
pod 'UIImage+ImageWithColor', '~> 1.2'
pod 'SHPieChartView', '~> 1.0.3'
pod 'THCircularProgressView', '~> 0.1'## MBProgressHUD

Pods.Debug.config

GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1
HEADER_SEARCH_PATHS = $(inherited) "${PODS_ROOT}/Headers/Public" "${PODS_ROOT}/Headers/Public/MBProgressHUD" "${PODS_ROOT}/Headers/Public/SHPieChartView" "${PODS_ROOT}/Headers/Public/THCircularProgressView" "${PODS_ROOT}/Headers/Public/UIImage+ImageWithColor"
OTHER_CFLAGS = $(inherited) -isystem "${PODS_ROOT}/Headers/Public" -isystem "${PODS_ROOT}/Headers/Public/MBProgressHUD" -isystem "${PODS_ROOT}/Headers/Public/SHPieChartView" -isystem "${PODS_ROOT}/Headers/Public/THCircularProgressView" -isystem "${PODS_ROOT}/Headers/Public/UIImage+ImageWithColor"
OTHER_LDFLAGS = $(inherited) -ObjC -l"Pods-MBProgressHUD" -l"Pods-SHPieChartView" -l"Pods-THCircularProgressView" -l"Pods-UIImage+ImageWithColor" -framework "CoreGraphics" -framework "UIKit"
OTHER_LIBTOOLFLAGS = $(OTHER_LDFLAGS)
PODS_ROOT = ${SRCROOT}/Pods

pods.environment.h

// MBProgressHUD
#define COCOAPODS_POD_AVAILABLE_MBProgressHUD
#define COCOAPODS_VERSION_MAJOR_MBProgressHUD 0
#define COCOAPODS_VERSION_MINOR_MBProgressHUD 9
#define COCOAPODS_VERSION_PATCH_MBProgressHUD 1

// SHPieChartView
#define COCOAPODS_POD_AVAILABLE_SHPieChartView
#define COCOAPODS_VERSION_MAJOR_SHPieChartView 1
#define COCOAPODS_VERSION_MINOR_SHPieChartView 0
#define COCOAPODS_VERSION_PATCH_SHPieChartView 3

// THCircularProgressView
#define COCOAPODS_POD_AVAILABLE_THCircularProgressView
#define COCOAPODS_VERSION_MAJOR_THCircularProgressView 0
#define COCOAPODS_VERSION_MINOR_THCircularProgressView 1
#define COCOAPODS_VERSION_PATCH_THCircularProgressView 1

// UIImage+ImageWithColor
#define COCOAPODS_POD_AVAILABLE_UIImage_ImageWithColor
#define COCOAPODS_VERSION_MAJOR_UIImage_ImageWithColor 1
#define COCOAPODS_VERSION_MINOR_UIImage_ImageWithColor 2
#define COCOAPODS_VERSION_PATCH_UIImage_ImageWithColor 0

0 个答案:

没有答案