dropbox / dropbox-sdk-obj-c

Official Objective-C SDK for the Dropbox API v2.
MIT License
183 stars 117 forks source link

Cannot compile iOS app - it's looking for old SDK in Carthage/Build/iOS? #350

Closed bsabiston closed 2 years ago

bsabiston commented 2 years ago

I'm updating an old iOS app for the first time in 3 years. The old version was using the Carthage-installed SDK, which resided in Carthage/Build/iOS/ObjectiveDropboxOfficial.framework.

The new version is a directory up, at Carthage/Build/ObjectiveDropboxOfficial.xcframework.

I updated to the new version, and my app compiled and ran, and it even passed validation for the App Store.
I figured I did not need the old one anymore - none of the files changed during the new compile. But after deleting it, my app no longer compiles?

Why is it still looking for the old one? I cleaned my build folder and cannot find any reference to the old framework in my project.

Failed to read file or folder at /Users/XXX/Desktop/XXXX/Carthage/Build/iOS/ObjectiveDropboxOfficial.framework: Error Domain=NSCocoaErrorDomain Code=259 "Cannot retrive binary file from bundle at file:///Users/XXX/Desktop/XXX/Carthage/Build/iOS/ObjectiveDropboxOfficial.framework/" UserInfo={NSLocalizedDescription=Cannot retrive binary file from bundle at file:///Users/XXX/Desktop/XXX/Carthage/Build/iOS/ObjectiveDropboxOfficial.framework/, NSLocalizedRecoverySuggestion=Does the bundle contain an Info.plist?} Command PhaseScriptExecution failed with a nonzero exit code

bsabiston commented 2 years ago

Ah, nevermind, I found the problem. I guess the old version added a Run Script step to the build phases to copy the SDK. I had to delete that.