box / box-ios-browse-sdk

Apache License 2.0
18 stars 23 forks source link

Use of undeclared identifier 'SHA_DIGEST_LENGTH' in Xcode 11 #146

Open Debsuv opened 4 years ago

Debsuv commented 4 years ago

Description of the Issue

Versions Used

Browse SDK: 1.0.7 iOS: 11.0.1

Steps to Reproduce

  1. Created a objc project.
  2. Added the pod as mentioned here https://cocoapods.org/pods/box-ios-browse-sdk
  3. Ran the project in xcode 11.2.1 iOS simulator 11.0.1 , 11.1

Error Message, Including Stack Trace

Desktop/iOS/Sample ObjC Box/Pods/box-ios-sdk/BoxContentSDK/BoxContentSDK/External/HashHelper/BOXHashHelper.m:131:26: error: use of undeclared identifier 'SHA_DIGEST_LENGTH' unsigned char digest[SHA_DIGEST_LENGTH];

Desktop/iOS/Sample ObjC Box/Pods/box-ios-sdk/BoxContentSDK/BoxContentSDK/External/HashHelper/BOXHashHelper.m:140:26: error: use of undeclared identifier 'SHA_DIGEST_LENGTH' unsigned char digest[SHA_DIGEST_LENGTH];

Desktop/iOS/Sample ObjC Box/Pods/box-ios-sdk/BoxContentSDK/BoxContentSDK/External/HashHelper/BOXHashHelper.m:141:24: error: use of undeclared identifier 'SHA_DIGEST_LENGTH' char finaldigest[2*SHA_DIGEST_LENGTH];

Desktop/iOS/Sample ObjC Box/Pods/box-ios-sdk/BoxContentSDK/BoxContentSDK/External/HashHelper/BOXHashHelper.m:145:17: error: use of undeclared identifier 'SHA_DIGEST_LENGTH' for (i=0; i<SHA_DIGEST_LENGTH; i++) {

Debsuv commented 4 years ago

I tried to use the Cartfile as mentioned in the doc and it gave the following issues as well

Desktop/iOS/Objc Box Cart/Carthage/Checkouts/box-ios-browse-sdk/BoxBrowseSDK/BoxBrowseSDK/Categories/BOXItem+BOXBrowseSDKAdditions.h:9:9: fatal error: module 'BoxContentSDK' not found @import BoxContentSDK;


1 error generated.

ARCHIVE FAILED

The following build commands failed: CompileC /Users/769969/Library/Caches/org.carthage.CarthageKit/DerivedData/11.2.1_11B53/box-ios-browse-sdk/6f2cbd86856bf8d44cd9d3cc7c51b04202520c08/Build/Intermediates.noindex/ArchiveIntermediates/BoxBrowseSDK/IntermediateBuildFilesPath/BoxBrowseSDK.build/Release-iphoneos/BoxBrowseSDK.build/Objects-normal/armv7/BOXItem+BOXBrowseSDKAdditions.o /Users/769969/Desktop/iOS/Objc\ Box\ Cart/Carthage/Checkouts/box-ios-browse-sdk/BoxBrowseSDK/BoxBrowseSDK/Categories/BOXItem+BOXBrowseSDKAdditions.m normal armv7 objective-c com.apple.compilers.llvm.clang.1_0.compiler (1 failure)

Xcode 11.2.1 iOS : 11.0.1

Seems like the Carthage cannot generate the BoxBrowse iOS SDK.