tjvantoll/nativescript-IQKeyboardManager

Build Failure

Closed this issue · 9 comments

If I:

tns plugin add nativescript-iqkeyboardmanager
tns build ios

I get ->

Xcode build...
2018-06-14 17:47:27.694 xcodebuild[8507:8513468] [MT] IDEDistribution: -[IDEDistributionLogging _createLoggingBundleAtPath:]: Created bundle at path '/var/folders/v0/rzzrgkhj5lq_7wfq8xzknsb80000gn/T/whiplash_2018-06-14_17-47-27.691.xcdistributionlogs'.
2018-06-14 17:47:37.953 xcodebuild[8507:8513468] [MT] IDEDistribution: Step failed: <IDEDistributionPackagingStep: 0x7fb54a93cf30>: Error Domain=NSCocoaErrorDomain Code=3840 "No value." UserInfo={NSDebugDescription=No value., NSFilePath=/var/folders/v0/rzzrgkhj5lq_7wfq8xzknsb80000gn/T/ipatool-json-filepath-AKYm2r}
error: exportArchive: The data couldn’t be read because it isn’t in the correct format.

Error Domain=NSCocoaErrorDomain Code=3840 "No value." UserInfo={NSDebugDescription=No value., NSFilePath=/var/folders/v0/rzzrgkhj5lq_7wfq8xzknsb80000gn/T/ipatool-json-filepath-AKYm2r}

** EXPORT FAILED **

Unable to apply changes on device: 8abb5524315f3c3d3ce080957ff9d6fe8342c2f0. Error is: Command xcodebuild failed with exit code 70.

If I:

tns plugin remove nativescript-iqkeyboardmanager
tns build ios

All is good and I am able to build.

I saw some of the other issues in this repo related to cocoa pods, so I did:

sudo gem install cocoapods   # To update cocoapods
pod --version
    1.5.3
pod repo update

Still same issue.

Also

tns --version
    4.1.0

I also see this ->

=== BUILD TARGET whiplash OF PROJECT whiplash WITH CONFIGURATION Debug ===
ld: warning: directory not found for option '-F/Users/sam/Library/Developer/Xcode/DerivedData/whiplash-cfgfgwabunjkplbeqmvlafdykboa/Build/Intermediates.noindex/ArchiveIntermediates/whiplash/BuildProductsPath/Debug-iphoneos/IQKeyboardManager'

Tried a build with tns run --release ios and same issue, but now:

=== BUILD TARGET whiplash OF PROJECT whiplash WITH CONFIGURATION Release ===
ld: warning: directory not found for option '-F/Users/sam/Library/Developer/Xcode/DerivedData/whiplash-cfgfgwabunjkplbeqmvlafdykboa/Build/Intermediates.noindex/ArchiveIntermediates/whiplash/BuildProductsPath/Release-iphoneos/IQKeyboardManager'
ld: warning: directory not found for option '-F/Users/sam/Library/Developer/Xcode/DerivedData/whiplash-cfgfgwabunjkplbeqmvlafdykboa/Build/Intermediates.noindex/ArchiveIntermediates/whiplash/BuildProductsPath/Release-iphoneos/IQKeyboardManager'

how can i solve this problem?

Any new updates?

@zeesulehria I haven't found a workaround and don't have enough time to try and solve so I just stopped using the plugin.

NL33 commented

I am also getting the same error with NS 4.1.0 on ios:

Unable to apply changes on device...Error is: Command xcodebuild failed with exit code 70.

My steps:

1) $ tns plugin add nativescript-iqkeyboardmanager
2) $ tns platform clean ios  //this probably was not necessary but I wanted a clean rebuild in case this helped. Didn't seem to
3) $ tns run ios

Note that my terminal output also includes:
warning: directory not found for option '-F.../BuildProductsPath/Debug-iphoneos/IQKeyboardManager'

When I remove the plugin, everything works fine.

Any solution to get this plugin to work?

My main goal is a way to stop the keyboard from covering up textviews.

NL33 commented

Any solutions? I just tried again after having updated my system, and it gave me this error:

[WARNING]:     WARNING: CocoaPods requires your terminal to be using UTF-8 encoding.
[WARNING]: .
Unable to apply changes on device: ...Error is: Pod install command failed. Error output: 
    Consider adding the following to ~/.profile:

    export LANG=en_US.UTF-8

I've tried various solutions like that listed here:CocoaPods/CocoaPods#6333

Adding:

export LANG=en_US.UTF-8

to the top of ~/.bashrc

Perhaps not in the right spot?

In any event, the issue keeps happening.

NL33 commented

I fixed the encoding issue, as described here: https://discourse.nativescript.org/t/keyboard-blocks-textview-on-ios/7412/6.

But now same error again:
Unable to apply changes on device...Error is: Command xcodebuild failed with exit code 70.

Also get warning:

ld: warning: directory not found for option '...Developer/Xcode/DerivedData/.../Build/Intermediates.noindex/ArchiveIntermediates/.../BuildProductsPath/Debug-iphoneos/IQKeyboardManager'