简体   繁体   中英

fatal error: 'clipboard_manager/clipboard_manager-Swift.h' file not found

Trying to run flutter on IOS simulator but it gives me error :

fatal error: 'clipboard_manager/clipboard_manager-Swift.h' file not found

I tried to run

rm ios/Podfile
rm ios/Podfile.lock
rm -rf ios/Pods

cd ios/ && pod update && pod install

But still its giving me the same error as shown above.

I also tried this answer on Github . Still no luck.

The clipboard_manager package suffers from configuration errors related Swift settings for iOS deployment. The package is obsolete and no longer maintained as Flutter now includes clipboard functionality by via the Dart SDK, which works across iOS, Android, web and desktop.

Simply import the Services library and use the static methods to copy/paste.

import package:flutter/services.dart;

Clipboard.getData(format); // returns Future<Clipboard>

Clipboard.setData(data);

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM