Closed sthyuhao closed 4 years ago
------------命令(xcodebuild build -workspace gen/App.xcworkspace -scheme XXX -configuration 'Debug' -sdk iphoneos -arch 'arm64e' SYMROOT='../../BuildTemp')执行错误------------
/*
库里的注释说明了在arm64e架构下需要开启_DARWIN_OPAQUE_ARM_THREAD_STATE64,开始天真的以为有arm64就会有arm64e。通过源码的调用方式修改一下属性就行了
`
uintptr_t bs_mach_framePointer(_STRUCT_MCONTEXT * const machineContext) {
#if __has_feature(ptrauth_calls)
return machineContext->__ss.__opaque_fp;
#else
return machineContext->__ss.__fp;
#endif
}
`
我这打静态库的时候出现编译失败的问题