search

Home  >  Q&A  >  body text

Objective-c - Modify files in xcode, but the modifications have no effect when compiling and running

Hello everyone:

Describe the situation first:

I encountered a problem when I used the socketrocket library to write a websocket client in the iOS client. There was a mistake in the source code of socketrocket:

@property (nonatomic, assign) id <SRWebSocketDelegate> delegate;

This place is

in the source code
@property (nonatomic, weak) id <SRWebSocketDelegate> delegate;

So I manually changed the weak, but after compiling and running, it showed that it didn’t work

At first I suspected it was related to the precompiled file. I recompiled the library separately and set the Precomplile Prefix Header under the building setting to No, but it still didn’t work.
I also tried clearing the xcode cache
But none of the modifications work
So I don’t know what the problem is.

ringa_leeringa_lee2830 days ago428

reply all(1)I'll reply

  • 曾经蜡笔没有小新

    曾经蜡笔没有小新2017-05-02 09:24:45

    I found the reason, it’s my own reason. Using weak is correct. But I don't have any circular references. . .

    reply
    0
  • Cancelreply