Giter Site home page Giter Site logo

Comments (18)

buhe avatar buhe commented on July 3, 2024 7

https://github.com/aliyun/aliyun-oss-react-native/blob/master/Example/ios/Example.xcodeproj/project.pbxproj#L1261

example add path to Header Search Path

I add below line to my project's "Framework Search Path"

"$(SRCROOT)/../node_modules/aliyun-oss-react-native/ios/AliyunSDK"

Build is pass

from aliyun-oss-react-native.

kala888 avatar kala888 commented on July 3, 2024 4

终于调试出来的。我发现一个问题。
对比Example,我发现在Example中ios下面有一个AliyunOSSiOS.framework的文件夹,这个哪里来的?把他拷贝到我的项目中,然后在xcode添加这个文件夹,神奇的好了。

image

之前失败,我很确定按照步骤三种的做法,我选择了“select Copy items if needed”

In XCode, in the project navigator, right click Frameworks ➜ Add Files to [your project's name]. Go to node_modules ➜ aliyun-oss-react-native ➜ AliyunSDK. Add AliyunOSSiOS.framework, and select Copy items if needed in the pop-up box.

是不是这里没有生效导致的?XCode Version 9.4.1 (9F2000)

同样法来添加AliyunOSSiOS.framework,
1,添加demo中的AliyunOSSiOS.framework可以正常使用,
2,添加node_modules中的AliyunOSSiOS.framework,报错

ld: framework not found AliyunOSSiOS,

怀疑,发布的包有问题

from aliyun-oss-react-native.

luozhang002 avatar luozhang002 commented on July 3, 2024

@Timson020 我本地尝试了react-native link aliyun-oss-react-native ,安卓这边编译是OK的,ios的确遇到了你说的这个问题,这个我在跟。
你可以先手动本地添加,是OK的。
2018-07-23 10 39 41

2018-07-23 10 44 34

from aliyun-oss-react-native.

Timson020 avatar Timson020 commented on July 3, 2024

手动添加,我这边是不行的喔。。。。
我看英文文档再试下

from aliyun-oss-react-native.

luozhang002 avatar luozhang002 commented on July 3, 2024

@Timson020 第三步的 copy items if need 选项勾选上

from aliyun-oss-react-native.

Timson020 avatar Timson020 commented on July 3, 2024

image

是的 我已经勾选了

第一步需要勾选么?

from aliyun-oss-react-native.

Timson020 avatar Timson020 commented on July 3, 2024

你xcode的版本是 9.4.1么

from aliyun-oss-react-native.

luozhang002 avatar luozhang002 commented on July 3, 2024

@Timson020 是的

from aliyun-oss-react-native.

Timson020 avatar Timson020 commented on July 3, 2024

。。。。
我的就是手动加入都不行
按照英文文档的来

from aliyun-oss-react-native.

Timson020 avatar Timson020 commented on July 3, 2024

如果方便的话 可以截图
整个步骤我看下么

from aliyun-oss-react-native.

luozhang002 avatar luozhang002 commented on July 3, 2024

@Timson020 ,你重新react-native init X ,然后这三步
1

from aliyun-oss-react-native.

kala888 avatar kala888 commented on July 3, 2024

一样的错误

ld: framework not found AliyunOSSiOS
clang: error: linker command failed with exit code 1 (use -v to see invocation)

image

from aliyun-oss-react-native.

luozhang002 avatar luozhang002 commented on July 3, 2024

AliyunOSSiOS.framework 这个东西是我们react-native Ios端依赖的原生ios oss sdk,这个东西其实我在项目里已经加入依赖。

from aliyun-oss-react-native.

CodingPapi avatar CodingPapi commented on July 3, 2024

Any updated news?

from aliyun-oss-react-native.

CodingPapi avatar CodingPapi commented on July 3, 2024

@luozhang002

from aliyun-oss-react-native.

vault13tech avatar vault13tech commented on July 3, 2024

终于调试出来的。我发现一个问题。
对比Example,我发现在Example中ios下面有一个AliyunOSSiOS.framework的文件夹,这个哪里来的?把他拷贝到我的项目中,然后在xcode添加这个文件夹,神奇的好了。

image

之前失败,我很确定按照步骤三种的做法,我选择了“select Copy items if needed”

In XCode, in the project navigator, right click Frameworks ➜ Add Files to [your project's name]. Go to node_modules ➜ aliyun-oss-react-native ➜ AliyunSDK. Add AliyunOSSiOS.framework, and select Copy items if needed in the pop-up box.

是不是这里没有生效导致的?XCode Version 9.4.1 (9F2000)

同样法来添加AliyunOSSiOS.framework,
1,添加demo中的AliyunOSSiOS.framework可以正常使用,
2,添加node_modules中的AliyunOSSiOS.framework,报错

ld: framework not found AliyunOSSiOS,

怀疑,发布的包有问题

mac-os: 10.14.2
react-native: 0.57.8
aliyun-oss-react-native: 1.0.0-alpha.7

也是遇到此問題,依 @kala888 方法,終於編譯成功...

from aliyun-oss-react-native.

oldfeel avatar oldfeel commented on July 3, 2024

@kala888 方法+添加ipv6那三个包,成功了

from aliyun-oss-react-native.

yubo725 avatar yubo725 commented on July 3, 2024

https://github.com/aliyun/aliyun-oss-react-native/blob/master/Example/ios/Example.xcodeproj/project.pbxproj#L1261

example add path to Header Search Path

I add below line to my project's "Framework Search Path"

"$(SRCROOT)/../node_modules/aliyun-oss-react-native/ios/AliyunSDK"

Build is pass

thanks, I followed your step and it works!

from aliyun-oss-react-native.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.