6

I'm experiencing an issue with running an opencv program in Xcode. I keep getting this error: https://i.sstatic.net/F6Gpu.png . Xcode works with other opencv programs, so I have no idea what would be causing this issue & how I would go about fixing it. Any and all help would be greatly appreciated.

3
  • 1
    I'm experiencing the same issue. It was caused when I run the TensorFlow toolchain in Xcode. Commented Sep 21, 2020 at 19:37
  • Same, reported here Commented Oct 1, 2020 at 18:57
  • I am seeing a similar error. When I do, the final build product is coloured red. In my case, I think the build was failing quietly because my source was in blue sub folders, that arrived when I added files to the project, but selected folders. When I added all the files in a flat structure, the build succeeded and to problem went away. Maybe your problem is something else entirely, but who knows. Commented Feb 19, 2021 at 18:46

6 Answers 6

4

Worked with me same step

I had a same problem. I have Just unchecked: Target-> Edit Scheme -> Run -> Info -> Debug executable.

Sign up to request clarification or add additional context in comments.

Comments

2

I had a same problem. I have Just unchecked: Target-> Edit Scheme -> Run -> Info -> Debug executable.

It works for me.

2 Comments

where is Target located?
Be aware that breakpoints will not work if you uncheck this box.
1

I had the same problem,

I tried unchecking this Target-> Edit Scheme -> Run -> Info -> Debug executable. It works but the problem is the Breakpoints will not work.

I had to restart my laptop and then it worked.

1 Comment

it's sad. but restarting worked for me too. and I have no idea how or why, but it'd come back every now and then.
0

My solution was to delete /Application/Xcode.app as well as /Library/Developer and ~/Library/Developer and reinstall Xcode.

Edit: The error reappeared. Not sure why.

I had the Xcode-Beta versions installed and assume that that might have caused that.

Comments

0

A solution has been provided here, which would be:

sudo install_name_tool -add_rpath /Applications/Xcode.app/Contents/Developer/Library/Frameworks/ <toolchain path>/System/Library/PrivateFrameworks/LLDB.framework/Versions/A/LLDB

Comments

0

My professor said it has to do with the way your files are set up in the IDE, if you have the program reading in files from a folder you imported, you need to remove the reference to the folder, and go back and import each file individually rather than the folder as a whole. The IDE just sees the folder and doesn't actually see the files inside essentially

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.