disusered / cordova-safe

File encryption for Cordova.
MIT License
35 stars 22 forks source link

iOS does not compile with Cordova 6.0.0, appears to have a path resolution error on 5.4.1 #10

Closed Chuxel closed 4 years ago

Chuxel commented 8 years ago

When attempting to build iOS with Cordova 6.0.0 with this plugin installed an error is thrown stating that "Cordova/NSData+Base64.h" is not found originating from safe.h.

When using Cordova 5.4.1 in the iOS simulator, the plugin always throws an error of "null" since fileExists always resolves to null in the main crypto method in safe.m.

omefire commented 8 years ago

The error I get when attempting to compile on iOS:

"ERROR building one of the platforms: Error code 65 for command: xcodebuild with args: -xcconfig,/Users/omefire/Projects/tt/platforms/ios/cordova/build-debug.xcconfig,-project,HelloCordova.xcodeproj,ARCHS=i386,-target,HelloCordova,-configuration,Debug,-sdk,iphonesimulator,build,VALID_ARCHS=i386,CONFIGURATION_BUILD_DIR=/Users/omefire/Projects/tt/platforms/ios/build/emulator,SHARED_PRECOMPS_DIR=/Users/omefire/Projects/tt/platforms/ios/build/sharedpch
You may not have the required environment or OS to build this project
Error: Error code 65 for command: xcodebuild with args: -xcconfig,/Users/omefire/Projects/tt/platforms/ios/cordova/build-debug.xcconfig,-project,HelloCordova.xcodeproj,ARCHS=i386,-target,HelloCordova,-configuration,Debug,-sdk,iphonesimulator,build,VALID_ARCHS=i386,CONFIGURATION_BUILD_DIR=/Users/omefire/Projects/tt/platforms/ios/build/emulator,SHARED_PRECOMPS_DIR=/Users/omefire/Projects/tt/platforms/ios/build/sharedpch"