架构 armv7 iOS 7.0 的未定义符号
Undefined symbols for architecture armv7 iOS 7.0
在 Xcode 中,当我使用 "Deployment Target" 6.0 或 6.1 构建应用程序时,它工作正常,但如果我将目标更改为 7.0 或更高版本,我会收到未定义符号错误。我试过删除框架并重新添加它,但似乎仍然无法构建它。不确定这是否有所作为,但我必须为此框架使用“-all_load”作为 "Other Linker Flags"。我还确保 "Valid Architectures" 包含 armv7,但我仍然无法弄清楚。任何人都可以帮助我或指出正确的方向吗?
Undefined symbols for architecture armv7:
"std::ios_base::Init::~Init()", referenced from:
__GLOBAL__I_a in G4XSwiper(DownSample.o)
__GLOBAL__I_a in G4XSwiper(FskController.o)
__GLOBAL__I_a in G4XSwiper(WavBuffer.o)
__GLOBAL__I_a in G4XSwiper(AE_ManchesterRealTimeDecoder.o)
__GLOBAL__I_a in G4XSwiper(AE_ManchesterState.o)
"std::ios_base::Init::Init()", referenced from:
__GLOBAL__I_a in G4XSwiper(DownSample.o)
__GLOBAL__I_a in G4XSwiper(FskController.o)
__GLOBAL__I_a in G4XSwiper(WavBuffer.o)
__GLOBAL__I_a in G4XSwiper(AE_ManchesterRealTimeDecoder.o)
__GLOBAL__I_a in G4XSwiper(AE_ManchesterState.o)
ld: symbol(s) not found for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)
尝试在其他Linker Flags中设置-ObjC -lstdc++或添加libstdc++ .6.dylib 在 Project->Targets->Build Phases-> Link Binary With Libraries.
在 Xcode 中,当我使用 "Deployment Target" 6.0 或 6.1 构建应用程序时,它工作正常,但如果我将目标更改为 7.0 或更高版本,我会收到未定义符号错误。我试过删除框架并重新添加它,但似乎仍然无法构建它。不确定这是否有所作为,但我必须为此框架使用“-all_load”作为 "Other Linker Flags"。我还确保 "Valid Architectures" 包含 armv7,但我仍然无法弄清楚。任何人都可以帮助我或指出正确的方向吗?
Undefined symbols for architecture armv7:
"std::ios_base::Init::~Init()", referenced from:
__GLOBAL__I_a in G4XSwiper(DownSample.o)
__GLOBAL__I_a in G4XSwiper(FskController.o)
__GLOBAL__I_a in G4XSwiper(WavBuffer.o)
__GLOBAL__I_a in G4XSwiper(AE_ManchesterRealTimeDecoder.o)
__GLOBAL__I_a in G4XSwiper(AE_ManchesterState.o)
"std::ios_base::Init::Init()", referenced from:
__GLOBAL__I_a in G4XSwiper(DownSample.o)
__GLOBAL__I_a in G4XSwiper(FskController.o)
__GLOBAL__I_a in G4XSwiper(WavBuffer.o)
__GLOBAL__I_a in G4XSwiper(AE_ManchesterRealTimeDecoder.o)
__GLOBAL__I_a in G4XSwiper(AE_ManchesterState.o)
ld: symbol(s) not found for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)
尝试在其他Linker Flags中设置-ObjC -lstdc++或添加libstdc++ .6.dylib 在 Project->Targets->Build Phases-> Link Binary With Libraries.