# ios各種debug問題 * 報錯 Could not build Objective-C module '...‘ From: https://stackoverflow.com/questions/38076495/could-not-build-objective-c-module-jsqmessagesviewcontroller * 報錯 error Failed to build iOS project. We ran "xcodebuild" command but it exited with error code 65. To debug build logs further, consider building your app with Xcode.app From: https://github.com/facebook/react-native/issues/24450 ``` react-native start --reset-cache rm -rf node_modules/ rm -rf package-lock.json cd ios pod deintegrate cd .. rm -rf ios/Podfile.lock npm install npm audit fix react-native link cd ios pod install cd .. react-native run-ios ``` * 報錯 “xcodebuild” command but it exited with error code 65 去iOS 重新跑pod install [參考](https://github.com/facebook/react-native/issues/25240) * 報錯 library not found for - libary未連接成功 到Xcode Targets中找build Settings 改Search paths->Libary Search Paths 裡面的參數 增加需要的套件 [參考](https://blog.csdn.net/liujia216/article/details/53112709) * 報錯 error: Multiple commands produce '/Users/macmini/Library/Developer/Xcode/DerivedData/merchant_app-cjlrrzqmbkpuznfswahryafzskjh/Build/Products/Debug-iphonesimulator/merchant_app.app/EvilIcons.ttf': 去Xcode->Targets->Build Phases->Copy Bundle Resources 刪除多餘的參考字體 並非去[CP]Copy Bundle Resource一個一個刪除(每一次build完會再出現) * Error: Command /bin/sh failed with exit code 2 刪除/Users/macmini/Library/Developer/Xcode/DerivedData/ 裡面的資料 Shift-Alt-Cmd-K clean Xcode project * Error:ld: warning: directory not found for option '-L-LPods/Target Support Files' 重新pod install 報錯 找不到字體 iOS中每個字體有自己的Familyname 需要使用font book裡面的名字 不能自己改 不然會找不到 * 報錯main.jsbundle does not exist. [參考]( https://stackoverflow.com/questions/49505446/main-jsbundle-does-not-exist-this-must-be-a-bug-with-echo-react-native )
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up